Step 1: Download Composer-Setup
Step 2: Run Setup
If you see the warning:
Some settings on your machine may cause stability issues with Composer.
If you encounter issues, try to change the following:The OpenSSL library (0.9.8t) used by PHP does not support TLSv1.2 or TLSv1.1.
If possible you should upgrade OpenSSL to version 1.0.1 or above.
You must upgrade OpenSSL after the installation of Composer. You can read this tutorial: How to upgrade OpenSSL from 0.9.8 to 1.0.1 on Windows
Done, now, you can use Composer anywhere
C:\Users\Administrator>composer --help Usage: help [options] [--] [<command_name>] Arguments: command The command to execute command_name The command name [default: "help"] Options: --xml To output help as XML --format=FORMAT The output format (txt, xml, json, or md) [defa ult: "txt"] --raw To output raw command help -h, --help Display this help message -q, --quiet Do not output any message -V, --version Display this application version --ansi Force ANSI output --no-ansi Disable ANSI output -n, --no-interaction Do not ask any interactive question --profile Display timing and memory usage information --no-plugins Whether to disable plugins. -d, --working-dir=WORKING-DIR If specified, use the given directory as workin g directory. -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for norma l output, 2 for more verbose output and 3 for debug Help: The help command displays help for a given command: php C:\ProgramData\ComposerSetup\bin\composer.phar help list You can also output the help in other formats by using the --format option: php C:\ProgramData\ComposerSetup\bin\composer.phar help --format=xml list To display the list of available commands, please use the list command.