使用包管理可以大大降低引用和管理第三方庫的成本,但是很多源都在國外,通過包管理安裝的時候,容易超時;我們可以通過修改為國內(nèi)源,或者使用代理來解決這個問題。
本文檔是bejson為您整理的composer包國內(nèi)資源,包括華為云composer包,上海交通大學composer包,阿里云composer包等
https://packagist.phpcomposer.com/
composer config -g repo.packagist composer https://packagist.phpcomposer.com
https://php.cnpkg.org/
composer config -g repo.packagist composer https://php.cnpkg.org
https://mirrors.aliyun.com/composer/
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
https://mirrors.huaweicloud.com/repository/php/
composer config -g repo.packagist composer https://mirrors.huaweicloud.com/repository/php/
https://packagist.mirrors.sjtug.sjtu.edu.cn/
composer config -g repo.packagist composer https://packagist.mirrors.sjtug.sjtu.edu.cn
https://packagist.jp/
composer config -g repo.packagist composer https://packagist.jp
您最近使用了: