composer国内资源包

使用包管理可以大大降低引用和管理第三方库的成本,但是很多源都在国外,通过包管理安装的时候,容易超时;我们可以通过修改为国内源,或者使用代理来解决这个问题。

本文档是bejson为您整理的composer包国内资源,包括华为云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

热门工具