Composer 需要版本但也允许开发分支

Composer require version but allow also develop branches

现任作曲家

"require": {
    "php": ">=5.5",
    "other/bundle": "~1.0"
},

当有人在 dev-develop 或其他分支上使用 other/bundle 时,他无法安装我的包。我怎么能允许这个?

这就是 stability flags 的用途。

"require": {
    "php": ">=5.5",
    "other/bundle": "~1.0@dev"
},