How to add domestic mirror in composer
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!
Option 1. Global configuration (recommended)
$ composer config -g repo.packagist composer https://packagist.laravel-china.org
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/
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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Composer's advanced features: aliases, scripts, and conflict resolution

Agile development and operation of PHP microservice containerization

PHP code version control and collaboration

What are the common ways to convert arrays to objects in PHP?

How to use Redis cache in PHP array pagination?

How to use PHP CI/CD to iterate quickly?

Visualization technology of PHP data structure

Maintenance and updates of PHP web service development and API design
