mirror of
https://github.com/tuna/mirror-web.git
synced 2025-12-26 05:02:48 +00:00
help of packagist
This commit is contained in:
parent
392bfd97c6
commit
73dbcf95cc
|
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
category: help
|
||||
layout: help
|
||||
mirrorid: packagist
|
||||
---
|
||||
|
||||
## PHP 包仓库 Packagist 索引镜像使用帮助
|
||||
|
||||
执行以下命令即可将 Composer 默认仓库设置为本站:
|
||||
|
||||
```
|
||||
composer config -g repos.packagist composer https://mirrors.tuna.tsinghua.edu.cn/packagist/index
|
||||
```
|
||||
|
||||
该镜像只包含包索引,不含包的内容,主要目的是加快 composer 读取软件包索引的速度。
|
||||
Loading…
Reference in New Issue