1.php环境并且需要配置环境变量
2.下载composer.phar(提取码:njvi)并放到PHP目录下,在PHP目录下新建composer.cmd, 内容为:@php "%~dp0composer.phar" %*
3.更改 Packagist 为国内镜像:composer config -g repo.packagist composer https://packagist.phpcomposer.com
4:全局替换
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
composer clear-cache # 此步奏选择性操作,清除所有 package 缓存。