Setting composer minimum stability for your application

Posted Yeah,程序猿

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Setting composer minimum stability for your application相关的知识,希望对你有一定的参考价值。

Minimum Stability Settings

Composer accepts these flags as minimum-stability settings. The default setting for minimum-stability if not provided is assumed to be stable, but you could define any of the flags down the hierarchy.

stable (most stable)
– RC
– beta
– alpha
– dev (least stable)

 

使用 @dev 解决版本问题

    "minimum-stability": "stable",
    "require": {
        "php": ">=5.4.0",
        "yiisoft/yii2": "*",
        "yiisoft/yii2-bootstrap": "*",
        "yiisoft/yii2-swiftmailer": "*",
        "kartik-v/yii2-grid": "@dev"
    },

以上是关于Setting composer minimum stability for your application的主要内容,如果未能解决你的问题,请参考以下文章

创建自己的composer包

嵌套包的 Composer 运行脚本

如何使用 Composer 将代码标记为稳定?

如何使用 Composer 将代码标记为稳定?

composer私有仓库搭建之系列一:创建自己的私有仓库

导入项目报错Minimum supported Gradle version is 3.3. Current version is 2.14.1