composer查看全局配置

 composer config -l -g

 

 

composer 更新慢 composer下载不下来问题解决

 

 

使用 Composer 镜像加速有两种选项:

  • 选项一:全局配置,这样所有项目都能惠及(推荐);
  • 选项二:单独项目配置;

选项一、全局配置(推荐)

$ composer config -g repo.packagist composer https://packagist.laravel-china.org

composer config -g repo.packagist composer https://packagist.phpcomposer.com

选项二、单独使用

如果仅限当前工程使用镜像,去掉 -g 即可,如下:

$ composer config repo.packagist composer https://packagist.laravel-china.org

更换composer镜像源,可以执行尝试以下几种:

1、更换成阿里镜像:
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/

2、更换成Laravel China镜像:
composer config -g repo.packagist composer https://packagist.laravel-china.org

3、更换成中国全量镜像:
composer config -g repo.packagist composer https://packagist.phpcomposer.com
————————————————
版权声明:本文为CSDN博主「赵局座」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_23953793/article/details/101374815

 

posted on 2019-10-21 15:51  小V_chen  阅读(4392)  评论(0编辑  收藏  举报

导航