composer 切换源

Composer 官方镜像:

// 全局
composer config -g repo.packagist composer https://packagist.org

// 当前项目
composer config repo.packagist composer https://packagist.org


Packagist / Composer 中国全量镜像:

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

// 当前项目
composer config repo.packagist composer https://packagist.phpcomposer.com


Laravel / Composer 中国镜像:

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

// 当前项目
composer config repo.packagist composer https://packagist.laravel-china.org