Home > Development Tools > composer > How to add domestic mirror in composer

How to add domestic mirror in composer

藏色散人
Release: 2019-12-17 14:02:46
forward
3013 people have browsed it

The following tutorial column of composer will introduce you to the method of adding domestic mirrors in composer. I hope it will be helpful to friends who need it!

How to add domestic mirror in composer

Option 1. Global configuration (recommended)

$ composer config -g repo.packagist composer https://packagist.laravel-china.org
Copy after login

Option 2. Use alone

If only the current project uses the mirror, remove it -g, as follows:

$ composer config repo.packagist composer https://packagist.laravel-china.org
https://packagist.laravel-china.org/
Copy after login

For more composer-related technical articles, please visit the composer tutorial column: https://www.php.cn/tool/composer/

The above is the detailed content of How to add domestic mirror in composer. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
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
Latest Issues
Composer failed to install TP51
From 1970-01-01 08:00:00
0
0
0
PHP study installation composer cannot be used
From 1970-01-01 08:00:00
0
0
0
php - Error using composer
From 1970-01-01 08:00:00
0
0
0
ThinkPHP Why use composer?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template