当前项目设置为阿里镜像

composer config repo.packagist composer https://mirrors.aliyun.com/composer/

全局使用阿里镜像

composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/

取消设置

composer config --unset repos.packagist