一个80后
程序员的笔记

阿里云 Composer 全量镜像

全局配置(推荐)

所有项目都会使用该镜像地址:


//阿里云
//使用说明:https://mirrors.aliyun.com/composer/
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/  
//华为云
composer config -g repo.packagist composer https://mirrors.huaweicloud.com/repository/php/   
//腾讯云
composer config -g repos.packagist composer https://mirrors.cloud.tencent.com/composer/  
//laravel-china
//使用说明:https://packagist.laravel-china.org/
composer config -g repos.packagist composer  https://packagist.laravel-china.org  
//cnpkg
composer config -g repos.packagist composer https://php.cnpkg.org
//phpcomposer
composer config -g repo.packagist composer https://packagist.phpcomposer.com
//交通大学
composer config -g repos.packagist composer https://packagist.mirrors.sjtug.sjtu.edu.cn

取消配置:

composer config -g --unset repos.packagist

项目配置

仅修改当前工程配置,仅当前工程可使用该镜像地址:

composer config repo.packagist composer https://mirrors.aliyun.com/composer/

取消配置:

composer config --unset repos.packagist

调试

composer 命令增加 -vvv 可输出详细的信息,命令如下:

composer -vvv require alibabacloud/sdk

官网:

https://mirrors.aliyun.com/composer/index.html

赞(27) 打赏
未经允许不得转载:笨笨天地 » 阿里云 Composer 全量镜像
分享到: 更多 (0)

相关推荐

  • 暂无文章

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏