2022年5月10日
composer 使用教程
镜像官方网址:
https://packagist.org/
修改镜像源:
# 仅修改当前项目 composer config repo.packagist composer https://mirrors.aliyun.com/composer/ composer config --unset repos.packagist # 取消当前项目配置 # 全局修改 composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/ composer config -g --unset repos.packagist # 取消全局配置
常用镜像源:
阿里云: https://mirrors.aliyun.com/composer/
腾讯云: https://mirrors.cloud.tencent.com/composer/
华为云: https://mirrors.huaweicloud.com/repository/php/