1、安装composer
安装时会需要选择php.exe所在路径,如果是用的phpstudy集成环境,需要选择对应的版本下的php.exe
2、更换composer源为阿里云:
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
3、用composer安装包时,提示:“[InvalidArgumentException] Could not find package guzzlehttp/guzzle.”
(1)更换为国内稳定的源,建议阿里云
(2)composer.json可能格式不正确