How to install PHP composer : OS Windows 7


Composer install into windows 7:
Download Composer software from this link:
Have to modify PATH environment value, such as adding “C:\wamp\bin\php\php5.5.12” at the end of PATH.
Do not need to restart computer, just reopen command line again

Run these commands:
Change to a directory on your PATH and run the install snippet to download composer.phar:
php -r "readfile('');" | php
Create a new composer.bat file alongside composer.phar:
echo @php "%~dp0composer.phar" %*>composer.bat
Close your current terminal. Test usage with a new terminal:
composer -V
To run composer.json, 1st go that folder and run this into command line:
composer update

Leave a Reply

Your email address will not be published. Required fields are marked *