Download Composer
Run this in your terminal to get the latest Composer version:
curl -sS https://getcomposer.org/installer | php
Or if you don't have curl:
php -r "eval('?>'.file_get_contents('https://getcomposer.org/installer'));"
This installer script will simply check some php.ini settings, warn you if they are set incorrectly, and then download the latest composer.phar in the current directory
Installer Options
You can install composer to a specific directory by using the --install-dir
option and providing a target directory. Options must be appended to --
so that PHP ignores them, like -- --install-dir=bin
, example:
curl -sS https://getcomposer.org/installer | php -- --install-dir=bin
Manual Download
If you prefer to download the phar manually, here are the available versions:
Latest Snapshot
1.0.0-alpha8 (2014-01-06)
1.0.0-alpha7 (2013-05-04)
1.0.0-alpha6 (2012-10-23)
1.0.0-alpha5 (2012-08-18)
1.0.0-alpha4 (2012-07-04)
1.0.0-alpha3 (2012-05-13)
1.0.0-alpha2 (2012-04-03)
1.0.0-alpha1 (2012-03-01)