Composer国内镜像源设置姿势

安装composer

wget curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer

设置国内镜像源姿势一 之 全局配置

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

设置国内镜像源姿势之一 之 单项目配置

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

设置国内镜像源姿势之一 之 composer.json

"repositories": {
    "packagist": {
      "type": "composer",
       "url": "https://packagist.phpcomposer.com"
    }
}
    原文作者:linux
    原文地址: https://www.jianshu.com/p/c095b2899074
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞