.
Manual Installation#
Change to a directory on your
PATH
and run the install snippet to download composer.phar
:C:\Users\username>cd C:\bin
C:\bin>php -r "readfile('https://getcomposer.org/installer');" | php
Note: If the above fails due to readfile, enable php_openssl.dll in php.ini. You may use the http
URL, however this will leave the request susceptible to a Man-In-The-Middle (MITM) attack.
Create a new
composer.bat
file alongside composer.phar
:C:\bin>echo @php "%~dp0composer.phar" %*>composer.bat
Add the directory to your PATH environment variable if it isn't already.
Close your current terminal. Test usage with a new terminal:
C:\Users\username>composer -V
Composer version 27d8904
.Source: https://getcomposer.org/doc/00-intro.md
.
Next: https://getcomposer.org/doc/01-basic-usage.md
No comments:
Post a Comment