composer设置镜像

查看composer全局设置
composer config -gl

修改地址为国内镜像:
composer config -g repo.packagist composer https://packagist.phpcomposer.com

修改地址为源镜像:
composer config -g repo.packagist composer https://packagist.org

现在推荐使用阿里云composer(2019.07.17):
https://developer.aliyun.com/composer

你可能感兴趣的:(PHP)