如何添加带有分叉存储库的多个软件包?

时间:2019-07-12 14:14:22

标签: composer-php

我想添加我在作曲家中分叉的多个软件包。

我使用了https://getcomposer.org/doc/05-repositories.md#loading-a-package-from-a-vcs-repository中描述的方法,但是那里描述的仅适用于一个软件包,而我想针对多个软件包进行。我应该如何申报?我想添加额外的存储库链接。

{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/igorw/monolog"
        }
    ],
    "require": {
        "monolog/monolog": "dev-bugfix"
    }
}

1 个答案:

答案 0 :(得分:0)

我找到了答案。

{
    "repositories": [
        { "type": "vcs", "url": "https://github.com/igorw/monolog" },
        { "type": "vcs", "url": "https://github.com/igorw/dialog" }
    ],
    "require": {
        "monolog/monolog": "dev-bugfix",
        "dialog/dialog": "dev-bugfix"
    },
}