This defines the default behavior for filtering packages by stability. This
defaults to stable, so if you rely on a dev package, you should specify
it in your file to avoid surprises.
All versions of each package are checked for stability, and those that are less
stable than the minimum-stability setting will be ignored when resolving
your project dependencies. (Note that you can also specify stability requirements
on a per-package basis using stability flags in the version constraints that you
specify in a require block (see package links for more details).
Available options (in order of stability) are dev, alpha, beta, RC,
and stable.
When this is enabled, Composer will prefer more stable packages over unstable
ones when finding compatible stable packages is possible. If you require a
dev version or only alphas are available for a package, those will still be
selected granted that the minimum-stability allows for it.
Feature request
result in composer.json should be
this so "roave/security-advisories": "dev-latest" can be used to get the latest security updates. But all other "requires" try to use stable.
https://getcomposer.org/doc/04-schema.md#minimum-stability
minimum-stability (root-only)#
This defines the default behavior for filtering packages by stability. This defaults to
stable
, so if you rely on adev
package, you should specify it in your file to avoid surprises.All versions of each package are checked for stability, and those that are less stable than the
minimum-stability
setting will be ignored when resolving your project dependencies. (Note that you can also specify stability requirements on a per-package basis using stability flags in the version constraints that you specify in arequire
block (see package links for more details).Available options (in order of stability) are
dev
,alpha
,beta
,RC
, andstable
.prefer-stable (root-only)#
When this is enabled, Composer will prefer more stable packages over unstable ones when finding compatible stable packages is possible. If you require a dev version or only alphas are available for a package, those will still be selected granted that the minimum-stability allows for it.
Use
"prefer-stable": true
to enable.