Composer: how to install `dev` packages in Symfony 2.3?

后端 未结 2 1674
小蘑菇
小蘑菇 2020-12-31 14:13

Trying to install the KnpGaufretteBundle in a Symfony 2.3 project, I\'m having no luck. The problem is:

  1. minimum-stability:stable (in compose
相关标签:
2条回答
  • 2020-12-31 14:47

    just use

    "knplabs/knp-gaufrette-bundle": "dev-master@dev" 
    

    if you need the latest dev version

    you can also change minimum-stability to dev and add "prefer-stable": true like this:

    "minimum-stability": "dev",
    "prefer-stable": true,
    

    then composer will always try to find a stable version and if nothing found install dev, so your symfony packages will be still stable. But in your case composer will install v0.1.4 (latest stable of knplabs/knp-gaufrette-bundle), so you need dev-master@dev anyway. prefer-stable is just a hint for you.

    0 讨论(0)
  • 2020-12-31 15:04

    Have a look at aliases: http://getcomposer.org/doc/articles/aliases.md

    They are supposed to allow you to address a branch (which by definition is always in development, because you can only access the latest commit) in a way that that branch should be the logical extension of a version tag.

    For a yet untagged project, a proper assumed tag version would be like "0.0.0".

    You should try the inline alias for the bundle.

    0 讨论(0)
提交回复
热议问题