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

Composer domestic acceleration: Check whether the acceleration image is available

藏色散人
Release: 2019-08-06 17:41:00
forward
2481 people have browsed it

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/
Copy after login

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
Copy after login

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!

Related labels:
source:learnku.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template