1. When using the composer install some libraries, the default is the official mirror sites packagist.org, because of domestic reasons network environment, speed is sometimes very slow
2. packagist the Chinese mirror sites have packagist.phpcomposer.com, global configuration settings for mirror sites can solve the problem of slow download speeds
composer config -g repo.packagist composer https://packagist.phpcomposer.com
3. Ali cloud also provides full-volume image Composer
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
4. Mirror station address set for a separate project, project into the directory, then execute the following command
composer config repo.packagist composer https://packagist.phpcomposer.com
composer config repo.packagist composer https://mirrors.aliyun.com/composer/
The mirror is provided to lift all stations, using the default official
composer config -g --unset repos.packagist