全局更换
$ composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
$ composer clear-cache
还原更换
$ composer config -g --unset repos.packagist
当前项目更换
$ cd /你的项目路径
$ composer config repo.packagist composer https://mirrors.aliyun.com/composer/
还原更换
$ composer config --unset repos.packagist
发表评论 取消回复