composer 切换镜像源
一、总结
一句话总结:
全局配置:切换阿里镜像:composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
1、查看composer配置?
composer config -l -g
二、composer 切换镜像源
转自或参考:http://www.mamicode.com/info-detail-3014576.html
1、更换composer镜像源为阿里云composer镜像
开发者社区地址:https://developer.aliyun.com/composer
全局配置:
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
取消配置:
composer config -g --unset repos.packagist
2、查看composer配置
composer config -l -g