分类: PHP 发表时间: 2019年10月15日

标题: 更换composer镜像源

摘要: 更换与重置镜像源

中国全量镜像

全局配置:composer config -g repo.packagist composer https://packagist.phpcomposer.com
恢复设置:composer config -g --unset repos.packagist

当前项目:composer config repo.packagist composer https://packagist.phpcomposer.com
恢复设置:composer config --unset repos.packagist

阿里云镜像

全局配置: composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
恢复配置: composer config -g --unset repos.packagist

项目配置: composer config repo.packagist composer https://mirrors.aliyun.com/composer/
恢复配置: composer config --unset repos.packagist