1.在你的phpstudy或者wamp中开启extension=php_openssl.dll扩展 (php配置文件)并配置好php的环境变量
2.在与你安装phpstudy和wamp不一样的盘中创建文件夹 :phpStudy\composer目录
3.cmd输入
1)php -r "copy('https://install.phpcomposer.com/installer', 'composer-setup.php');"
命令:
2)php composer-setup.php命令:
echo @php "%~dp0composer.phar" %*>composer.bat命令:
composer -Vcomposer config -g secure-http false
composer config -g repo.packagist composer https://packagist.phpcomposer.com
到了这一步要建个composer.json文件
{
"require": { "monolog/monolog": "1.2.*" }}命令:
php composer.phar install命令:
composer install命令:
composer selfupdate命令:composer update 将composer目录添加到系统环境path 中