Blogger Information
Blog 63
fans 2
comment 0
visits 162936
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
Composer 查看和配置镜像源
书声的博客
Original
5603 people have browsed it

系统全局配置:
可以使用 composer config -l -g 查看所有全局配置

单个项目配置:
在当前项目根目录可以使用 composer config -l 查看当前项目镜像配置

设置国内镜像源一全局配置

  1. composer config -g repo.packagist composer https://packagist.phpcomposer.com

设置国内镜像源一单项目配置

  1. composer config repo.packagist composer https://packagist.phpcomposer.com

设置国内镜像源一composer.json

  1. "repositories": {
  2. "packagist": {
  3. "type": "composer",
  4. "url": "https://packagist.phpcomposer.com"
  5. }
  6. }

取消全局镜像源配置

  1. composer config -g --unset repos.packagist

取消当前镜像源配置:

  1. composer config --unset repos.packagist
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post