Dec 19, 2016

How to install Composer, PHPUnit in Ubuntu

Composer and PHPUnit packed with phar, so we need only append these lines into ~/.bashrc:

# change location to your phpunit.phar
alias composer=~/bin/composer/composer.phar
alias phpunit=~/bin/phpunit/phpunit.phar
We also install composer this way:

sudo curl -sS http://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
Check them installed or not?
phpunit --version
composer --version

No comments:

Post a Comment