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 -V
composer config -g secure-http false
composer config -g repo.packagist composer https://packagist.phpcomposer.com
命令:
php composer.phar install
命令:
composer install
命令:
composer selfupdate
命令:
composer update
将composer目录添加到系统环境
path 中
时间: 2024-10-25 05:42:27