如何描述依赖关系?

时间:2015-04-21 12:05:45

标签: composer-php

在项目Slim + Slim / Extras + Twig中使用。 我需要使用它https://github.com/codeguy/Slim-Extras/pull/87, 但目前没有接受拉请求。 如何正确配置Composer? 到目前为止,为了不抑制开发,修复文件夹供应商中的代码,但这绝对是错误的方法。

1 个答案:

答案 0 :(得分:1)

如果我理解正确,您需要添加自己的存储库。 分支的同名可能存在问题(origin:master,yourrs:master)。如果发生这种情况,请尝试更改分支名称。

"require": {
    "slim/extras": "master"
},

"repositories": [
    { "type": "git", "url": "https://github.com/mvader/Slim-Extras.git" }
]