1. Global installation acceleration
Add in the global configuration file config.json (usually in the .composer directory in the home directory):
{ "config" : [], "repositories": [ { "packagist": false }, { "type": "composer", "url": "http://packagist.cn" } ] }
2. Single project acceleration
In the project’s composer.json Join:
{ "repositories": [ { "packagist": false }, { "type": "composer", "url": "http://packagist.cn" } ] }
The above has introduced php Composer acceleration, including aspects of it. I hope it will be helpful to friends who are interested in PHP tutorials.