From 73dbcf95cc366f6705647c316fd04c823aea8b63 Mon Sep 17 00:00:00 2001 From: z4yx Date: Thu, 27 Feb 2020 18:32:04 +0800 Subject: [PATCH] help of packagist --- _posts/help/1970-01-01-packagist.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 _posts/help/1970-01-01-packagist.md 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 读取软件包索引的速度。