window的composer安装
下载composer.exe
非开发者模式,一直下一步,选择自己的PHP.exe;
安装完成,
安装镜像;
全局配置:
composer config -g repo.packagist composer https://packagist.phpcomposer.com
单项目配置
composer config repo.packagist composer https://packagist.phpcomposer.com
撤销镜像
composer config -g --unset repos.packagist
推荐使用阿里云镜像
阿里云镜像配置命令,
composer config -g repos.packagist composer https://mirrors.aliyun.com/composer/