Home  >  Article  >  Development Tools  >  Composer domestic acceleration: Check whether the acceleration image is available

Composer domestic acceleration: Check whether the acceleration image is available

藏色散人
藏色散人forward
2019-08-06 17:40:312419browse

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.

Composer domestic acceleration: Check whether the acceleration image is available

#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!

Statement:
This article is reproduced at:learnku.com. If there is any infringement, please contact admin@php.cn delete