The following tutorial column of composer will introduce to you the version stability of composer. I hope it will be helpful to friends in need!
About composer version stability
If you do not explicitly specify the version For stability, Composer will internally specify -dev or -stable by default based on the operator used. For example:
Internal Constraint | |
---|---|
1.2.3
|
=1.2.3.0-stable
|
| >1.2.0.0-stable
|
##> =1.2.0.0-dev |
##>=1.2-stable |
|
<1.3 |
| <=1.3
|
| 1 - 2
|
| ##~1.3
| >=1.3.0.0-dev <2.0.0.0-dev
| 1.4.*
| >=1.4.0.0-dev <1.5.0.0-dev
|
##Example : 1.0 - 2.0 If you want to specify the version as long as the stable version, you can add the suffix -stable after the version. |
{ "require": { "monolog/monolog": "1.0.*@beta", "acme/foo": "@dev" } }
The above is the detailed content of About composer version stability. For more information, please follow other related articles on the PHP Chinese website!