PHP手把手教你发布自己的 Composer包
文章目录
1. 准备工作
注册 Github 账号 : https://github.com/
注册 Packagist 账号 : https://packagist.org/
2. 添加git仓库
2.1 创建 Github 仓库
并按要求填写信息
2.2 克隆到本地
git clone https://github.com/friker/test.git
2.3 初始化composer.json
composer init
Pagekage name : friker/test
Descript []: php test script
Author: friker friker@126.com
Mininum Stability []:
Package Type []: library
license []: MIT
接下来全部回车 (如果有依赖,则按需求搜索依赖包)
生成
{
"name": "friker/test",
"description": "php test script",
"type": "library",
"license": "MIT",
"authors": [