Setting up Composer globally for Laravel 4


An easy way to set up composer globally is to follow the instructions on getcomposer.org site:

[ps]
\$ curl -s http://getcomposer.org/installer | php
\$ sudo mv composer.phar /usr/local/bin/composer
[/ps]

Now I can use composer by invoking just the composer command.

Optional way to do it, is to set up an alias:

[ps]
alias composer='/location/of/the/composer.phar'
[/ps]