Composer 设置国内镜像加速命令
1.在创建项目之前,我们先在虚拟机中运行以下命令来实现 Composer 安装加速 :
$ composer config -g repo.packagist composer https://packagist.phpcomposer.com
1
或者https://laravel-china.org/composer
$ composer config -g repo.packagist composer https://packagist.laravel-china.org
1
2.查看Composer全局设置命令:
$ composer config -gl
https://blog.csdn.net/qq_39479575/article/details/78515219