Composer: required packages with differing levels of minimum-stability

前端 未结 2 457
梦如初夏
梦如初夏 2021-01-30 19:45

I have a composer file for a laravel installation with the following composer.json file:

{
    \"name\": \"laravel/laravel\",
    \"description\": \"The Laravel          


        
2条回答
  •  花落未央
    2021-01-30 20:20

    You can also use other levels of stability, like alpha, beta combined with version selector.

    Examples

    With caret operator - maximum of version 2 allowing beta:

    "cartalyst/sentry": "^2@beta"
    

    Any version allowing alpha

    "cartalyst/sentry": "*@alpha"
    

提交回复
热议问题