php composer软件包:dev-master版本的问题

时间:2020-04-11 18:32:05

标签: php github composer-php


我在作曲家中遇到这个问题。我创建了一个连接到github的软件包。我想设置作曲家使用:我的github代码的 dev-master 版本,而不是 tag 。但这是我在安装软件包时得到的:

 [InvalidArgumentException]
  Could not find a version of package zerig/url-parser matching your minimum-stability (stable). Require it with an e
  xplicit version constraint allowing its desired stability.

当我在github上创建标签时。当我在composer上更新程序包并且删除所有版本(例如一个标签版本)时,它就可以工作。但我想使用 dev-master 版本。因为每次更改都会迫使我执行大量操作。

这就是我尝试过并认为会有所帮助的。但不是。 composer.json

"require": {
    "php" : ">=5.6.0",
    "zerig/url-parser": "dev-master"
},

非常感谢您的帮助

0 个答案:

没有答案