composer update 慢的解决方案

修改composer.json,增加镜像配置:

"repositories": {
        "packagist": {
            "type": "composer",
            "url": "https://mirrors.aliyun.com/composer/"
        }
    }
}

参考镜像地址:

1. https://mirrors.aliyun.com/composer/

2. https://packagist.phpcomposer.com/

使用如下命令可以达到增加镜像配置的效果:

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

 

你可能感兴趣的:(经验案例,PHP基础)