Repository navigation
Manual installation
The goal is to download Composer to a single directory and set things up so you can run it from any location by typing: composer into a command window. This is what the Composer-Setup installer does automatically, but you can achieve the same in a few simple steps.
Composer is a PHP script that runs from the command line, through the PHP CLI (Command Line Interpreter). You can run this by typing path\to\my\php.exe -v, which will display the version of PHP that you are using. But it is much simpler to type php -v. If this works for you then you are done, otherwise you must add the directory containing php.exe to your path environment variable - there are plenty of online tutorials.
As an alternative to the standard command window, Console is an open-source alternative that lets you open multiple tabs. Each can be configured to start in a directory that you choose.
Decide where you want to install Composer to. This could be in your root at C:\composer or maybe in your home directory C:\Users\Me or C:\Users\Me\composer. You could even make it more Unixy and create a C:\Users\Me\bin directory.
Once you have created the directory, cd (change directory) to it in your command window and type:
php -r "eval('?>'.file_get_contents('https://getcomposer.org/installer'));"
There are other ways of doing this. If you have curl installed you can type:
curl -s https://getcomposer.org/installer | php
Or if you have git installed you can use the above command in git bash. Note that if see any error messages running git bash, click past these and check that Composer has downloaded - these errors can sometimes be cause by the mb_string extension being listed in your php.ini after other extensions that require it.