转载:https://blog.csdn.net/hu_feng903/article/details/51952836
执行命令行 该命令是修改config.json配置
composer config repo.packagist composer https://packagist.phpcomposer.com
然后在自己项目里面的composer.json文件里面添加如下:
"repositories": {
"packagist": {
"type": "composer",
"url": "https://packagist.phpcomposer.com"
}
}