diff --git a/_posts/help/1970-01-01-packagist.md b/_posts/help/1970-01-01-packagist.md new file mode 100644 index 0000000..7450a2b --- /dev/null +++ b/_posts/help/1970-01-01-packagist.md @@ -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 读取软件包索引的速度。