3

Composer 国内全量镜像大全

 2 years ago
source link: https://blog.p2hp.com/archives/9324
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

特意整理了国内能用的 composer 全量镜像。

$ composer config -g repo.packagist composer  镜像地址
$ composer clearcache
$ composer update || install

说明:若项目之前已通过其他源安装,可以删除 composer.lock 以及 vendor 目录,重新生成。

$ composer config -g --unset repos.packagist

阿里云 Composer 全量镜像

镜像地址:https://mirrors.aliyun.com/composer/
官方地址:https://mirrors.aliyun.com/composer/index.html
说明:一直用阿里,一直很好用。

腾讯云 Composer 全量镜像

镜像地址:https://mirrors.cloud.tencent.com/composer/
官方地址:https://mirrors.cloud.tencent.com/composer
说明:若您使用腾讯云服务器,可以将源的域名从 mirrors.cloud.tencent.com 改为 mirrors.tencentyun.com,使用内网流量不占用公网流量,是不是非常良心。

华为 Composer 全量镜像

镜像地址:https://mirrors.huaweicloud.com/repository/php/
官方地址:https://mirrors.huaweicloud.com/
说明:华为 composer 镜像目前还不够完善,composer i 时会出现一些 bug ,而且同步速度也比较慢,好像并非是全量的。

Packagist Mirror

镜像地址:https://packagist.mirrors.sjtug.sjtu.edu.cn
官方地址:https://mirrors.sjtug.sjtu.edu.cn/packagist/
说明:上海交通大学提供的 composer 镜像,稳定、快速、现代的镜像服务,推荐使用。

希望国内的 composer 全量镜像越来越来多,能让开发者有更多的选择。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK