mareknocon / composer-stability-patterns
Specify Composer's minimum stability using patterns
Installs: 15
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:composer-plugin
Requires
- php: ^7.4 || ^8.0
- composer-plugin-api: ^2.3
Requires (Dev)
- composer/composer: ^2.5
- friendsofphp/php-cs-fixer: ^3.0
- ibexa/code-style: ^1.0
- phpstan/phpstan: ^1.9
- phpstan/phpstan-phpunit: ^1.0
- phpstan/phpstan-symfony: ^1.0
- phpunit/phpunit: ^9.6 || ^10
This package is auto-updated.
Last update: 2025-03-11 21:08:24 UTC
README
Description
This plugin allows you to specify Composer's minimum stability using more granular patterns, similar as the preferred-install
and allow-plugins
options do.
Instalation
The plugin needs to be active during the pre-pool-create
event - meaning that in order to work it needs to be already installed and activated before that. That's why global installation is needed:
composer global require mareknocon/composer-stability-patterns
Examples
Specify the patterns and their stability level in the exta
section in composer.json
file:
"extra": { "minimum-stability": { "my-organization/specific-package": "stable", "my-organization/*": "dev", "partner-organization/*": "rc", "*": "stable" } }
Doc
Together with this plugin there are three options to specify minimum stability, which are resolved in the following order:
-
Package stability level
Directly specified stability (
@dev
,@alpha
,@beta
,@RC
) for a package will be used. -
Granular stability level
If package name matches one of the specified patterns then the stability level of the first matching pattern will be used
-
Global stability level