Skip to content

Instantly share code, notes, and snippets.

@odiel
Created January 23, 2014 23:11
Show Gist options
  • Save odiel/8588731 to your computer and use it in GitHub Desktop.
Save odiel/8588731 to your computer and use it in GitHub Desktop.
$ 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
Update: Composer now offers another method as well on the website:
$ curl -sS https://getcomposer.org/installer | php
$ (sudo) mv composer.phar /usr/local/bin/composer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment