Write the Code. Change the World.

10月 11

  1. 去除镜像
composer config -g --unset repos.packagist
  1. 添加全局镜像(两个选一个)
composer config -g repo.packagist composer https://packagist.laravel-china.org

composer config -g repo.packagist composer https://packagist.phpcomposer.com
  1. 当前项目添加镜像
composer config repo.packagist composer https://packagist.laravel-china.org
  1. 查看镜像
composer config -l -g

娃哈哈

https://packagist.laravel-china.org/

https://pkg.phpcomposer.com/#how-to-use-packagist-mirror