Skip to content

Instantly share code, notes, and snippets.

@sangar82
Created July 30, 2014 16:15
Show Gist options
  • Save sangar82/cfd82baf1504ddb20429 to your computer and use it in GitHub Desktop.
Save sangar82/cfd82baf1504ddb20429 to your computer and use it in GitHub Desktop.
Composer update
$ curl -sS https://getcomposer.org/installer | php
$ (sudo) mv composer.phar /usr/local/bin/composer
Manual Method
I found an easier way to globally install composer than the manual proscribed in the github readme.md. It's actually on the getcomposer.org website:
$ curl -s http://getcomposer.org/installer | php
$ sudo mv composer.phar /usr/local/bin/composer.phar
And if you're even more lazy, like me, you can create an alias:
$ alias composer='/usr/local/bin/composer.phar'
This way you can invoke composer with just composer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment