Global replacement
$ composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
$ composer clear-cache
Restore replacement
$ composer config -g --unset repos.packagist
Current project replacement
$ cd /your project path
$ composer config repo.packagist composer https://mirrors.aliyun.com/composer/
Restore replacement
$ composer config --unset repos.packagist
Post comment 取消回复