Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A Windows installer for the Composer PHP Dependency Manager
branch: master
Failed to load latest commit information.
src Code-signed dlls for v3 release
tests Revised test input
.gitattributes Add travis.yml
.travis.yml Update travis Code-signed dlls for v3 release
LICENSE Added license Update Readme with correct download url


The Windows installer for the Composer PHP Dependency Manager. Download it here.



Composer is a wonderful tool but it can sometimes be tricky to install on Windows. This installer attempts to ease the pain by:

  • helping you set up PHP so that it can be used from the command line
  • installing Composer so that you can use it from any location by typing: composer
  • enabling its use from Command Prompt, Git Bash, Msys and Cygwin (including cygwin php)
  • offering the option to run Composer from Explorer/File Manager windows

Download and run the latest release and in the majority of cases this is all you need to do. The install process is described in more detail below, while the Wiki describes how to do it manually.

Composer-Setup is written with Inno Setup, which is a powerful free installer for Windows programs.


You are first asked if you want to install the optional Shell Menus feature, which allows you to run Composer commands by right-clicking folder items in Windows Explorer/File Manager. You can add or remove this feature at any time - see Changing. Note that the Shell Menus are not available pre Windows Vista.

Next you are asked for the location of your php.exe, which is the PHP command line interpreter. If this value is in your path then it will be displayed, otherwise you are going to have to hunt around. Depending on your setup it could be:

  • In your root directory, usually C:\, maybe under php or xampp or WampServer or EasyPhp
  • In your C:\Program Files directory, perhaps under one of the above
  • Or wherever else it got installed to

The installer will then check that PHP and your path are set up correctly. If it finds any errors it will give you the chance to fix them.

The installation directories depends on whether you are an Administrator or not and are non-negotiable.

Admin install for all users:

  • C:\<Program Files>\ComposerSetup
  • C:\ProgramData\ComposerSetup\bin

User install:

  • C:\Users\<user>\AppData\Local\ComposerSetup
  • C:\Users\<user>\AppData\Local\ComposerSetup\bin

After you have reviewed and accepted your settings, the installer will download Composer and set everything up. Full usage documentation can be found at and a repository of packages can be browsed at Packagist.


You can change/modify your installation at any time from the Control Panel. Go to Programs and Features, select Composer, then click Change. This allows you to re-run setup (perhaps to alter your PHP location) and to either add or remove the Shell Menus feature.


The uninstall program is available from the Control Panel. Go to Programs and Features, select Composer, then click Uninstall. This offers the option to remove cache and configuration data that Composer may have stored.


The installer will modify your System Path environment variable for Admin installs, or your User Path environment variable for User installs. The installer will add php.exe to the path if required and will also add the path to the installation bin directory. The uninstaller will only remove the path to the bin directory, leaving the PHP path intact.


To compile the src/composer.iss script you will need to install the unicode version of Inno Setup Compiler. Make sure you include Inno Setup Preprocessor when you run the installer.


Composer-Setup is licensed under the MIT License - see the LICENSE file for details

Something went wrong with that request. Please try again.