What method can be used to check whether it is available when selecting a fully accelerated image? The composer usage tutorial column below will explain how to check whether it is available when selecting a fully accelerated image.
#When selecting a fully accelerated image, you can use the following method to check whether it is available.
1. Use mirror:
$ composer config -g repo.packagist composer https://mirrors.cloud.tencent.com/composer/
2. Clear cache
Composer will cache the downloaded package. After clearing the local cache, it will download from the accelerated mirror:
$ composer clear-cache
3. Install and download the project
$ composer create-project laravel/laravel blog -vvv
View the output results to judge:
Is it successful?
Is the JSON download link a mirror link?
Is the ZIP file download link a mirror link?
Are JSON and ZIP files fast enough?
The above is the detailed content of Composer domestic acceleration: Check whether the acceleration image is available. For more information, please follow other related articles on the PHP Chinese website!