美文网首页
composer打包

composer打包

作者: 谦业 | 来源:发表于2020-02-11 15:36 被阅读0次
    1. 在项目根目录创建composer.json文件
    2. 编辑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"

    1. 项目保存到github中,得到github地址如下
    https://github.com/Alexchent/yaoktravel.git
    
    1. https://packagist.org/中,点击submit

    2. 输入git仓库地址,点击check

    相关文章

      网友评论

          本文标题:composer打包

          本文链接:https://www.haomeiwen.com/subject/uydxfhtx.html