- 在项目根目录创建composer.json文件
- 编辑composer.json文件
{
"name":"igorw/event-source", //供应商名/项目名
"description":"....", // 简短的描述,通常只有一行
"version":"..", //版本号,建议忽略
"type":"library", //安装类型,建议忽略
"keywords":"event-source", //关键字,用于搜索过滤
"homepage":"...", //主页,可选
"license":"MIT", //许可协议,可选,建议提供
"authors": [ //作者,可选,建议提供
{
"name": "Nils Adermann",
"email": "naderman@naderman.de",
"homepage": "http://www.naderman.de",
"role": "Developer"
},
{
"name": "Jordi Boggiano",
"email": "j.boggiano@seld.be",
"homepage": "http://seld.be",
"role": "Developer"
}
],
"support": { //支持,可选
"email":"example@163.com",
"wiki":"..."
}
"require": { //依赖的包,可选
"monolog/monolog": "1.0.*"
}
}
闭源软件使用,"license":"proprietary"
- 项目保存到github中,得到github地址如下
https://github.com/Alexchent/yaoktravel.git
-
在https://packagist.org/中,点击submit
-
输入git仓库地址,点击check
网友评论