Install the windows composer

Links

 

1. PHP 5.6 or more

 

2. php.ini open:

extension=php_openssl.dll
extension=php_mbstring.dll
extension=php_pdo_mysql.dll

 

3. Enter Composer official website to download the page , Manual Download area at the bottom of the page select the version to download required.

 

4. Copy the downloaded composer.phar to the PHP installation directory, and php.exe is in the same directory.

 

5. Create a new file in the PHP composer.bat installation directory, and the following code is stored in this file.

bat@php "%~dp0composer.phar" %*

 

6. Open a command line window to perform to try composer --versionto see whether the correct output version number.

 

7. Open command window execute the following command

composer config -g repo.packagist composer https://packagist.phpcomposer.com

 

Guess you like

Origin www.cnblogs.com/Skate0rDie/p/11778730.html