Download Composer

Windows Installer

The installer will download composer for you and set up your PATH environment variable so you can simply call composer from any directory.

Download and run Composer-Setup.exe - it will install the latest composer version whenever it is executed.

Command-line installation

Run this in your terminal to get the latest Composer version:

php -r "copy('', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === '669656bab3166a7aff8a7506b8cb2d1c292f042046c5a994c43155c0be6190fa0355160742ab2e1c88d40d5be660b410') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"

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. The 4 lines above will, in order:

WARNING: Please do not redistribute the install code. It will change with every version of the installer. Instead, please link to this page or check how to install Composer programmatically.

Installer Options


You can install composer to a specific directory by using the --install-dir option and providing a target directory. Example:

php composer-setup.php --install-dir=bin


You can specify the filename (default: composer.phar) using the --filename option. Example:

php composer-setup.php --filename=composer


You can install composer to a specific release by using the --version option and providing a target release. Example:

php composer-setup.php --version=1.0.0-alpha8

Preview / Snapshot Releases

By default the installer and composer self-update will download stable versions only. If you would like to help test pre-release versions you can use the --preview flag on either installer or self-update. For snapshot builds which are done from the latest Composer commit, you can use the --snapshot flag.

Manual Download

If you prefer to download the phar manually, here are the available versions:

Latest Snapshot
1.4.1 (2017-03-10)
1.4.0 (2017-03-08)
1.3.3 (2017-03-08)
1.3.2 (2017-01-27)
1.3.1 (2017-01-07)
1.3.0 (2016-12-23)
1.3.0-RC (2016-12-11)
1.2.4 (2016-12-06)
1.2.3 (2016-12-01)
1.2.2 (2016-11-03)
1.2.1 (2016-09-12)
1.2.0 (2016-07-18)
1.2.0-RC (2016-07-04)
1.1.3 (2016-06-26)
1.1.2 (2016-05-31)
1.1.1 (2016-05-17)
1.1.0 (2016-05-10)
1.1.0-RC (2016-04-29)
1.0.3 (2016-04-29)
1.0.2 (2016-04-21)
1.0.1 (2016-04-18)
1.0.0 (2016-04-05)
1.0.0-beta2 (2016-03-27)
1.0.0-beta1 (2016-03-03)
1.0.0-alpha11 (2015-11-14)
1.0.0-alpha10 (2015-04-14)
1.0.0-alpha9 (2014-12-07)
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)