官网:https://developer.aliyun.com/…
全局替换
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
composer clear-cache # 此步选择性操作,革除所有 package 缓存。
以后我的项目替换
cd 我的项目目录
composer config repo.packagist composer https://mirrors.aliyun.com/composer/