[php] 2023-12-01 圈点718
摘要:Composer源镜像其实国内的速度会快得多,国内各大公司分享的Composer源,挺不错的,有大公司可以非常方便的使用它们分享的东西,个人表示非常感谢!
Composer源镜像其实国内的速度会快得多,国内各大公司分享的Composer源,挺不错的,有大公司可以非常方便的使用它们分享的东西,个人表示非常感谢!
Composer源如下:
https://mirrors.aliyun.com/composer/
https://mirrors.huaweicloud.com/repository/php/
https://mirrors.cloud.tencent.com/composer/
镜像地址:https://php.cnpkg.org
https://packagist.mirrors.sjtug.sjtu.edu.cn
https://packagist.phpcomposer.com
配置源方法:
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
上一篇[php]php多版本共存的设置方法