Composer 中国镜像-阿里云镜像

原文地址:https://developer.aliyun.com/composer

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

1
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/

取消镜像

1
composer config -g --unset repos.packagist

选项二、项目配置

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

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

取消镜像

1
composer config --unset repos.packagist

调试

1
composer -vvv install

Composer manager

鲜有日子,阿里云镜像也会抽风,那么这是镜像管理工具推荐给你,很方便切换到你想要使用的源

原文地址:https://github.com/slince/composer-registry-manager