One of the first thing to install for PHP development is Composer. The installation is pretty much straight forward, but it’s not available globally after installation.
- Download composer:
url -sS https://getcomposer.org/installer | php
- Move the the bin folder:
mv composer.phar /usr/local/bin/composer.phar
.bash_profilewith the editor of your choice (nano, vim, etc.)
alias composer="php /usr/local/bin/composer.phar"
- Close terminal and open again
After this, Composer is available globally.