Download the PHP package deviantintegral/composer-gavel without Composer
On this page you can find all versions of the php package deviantintegral/composer-gavel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download deviantintegral/composer-gavel
More information about deviantintegral/composer-gavel
Files in deviantintegral/composer-gavel
Package composer-gavel
Short Description Enforce a minimum Composer version for your team
License MIT
Informations about the package composer-gavel
Composer Gavel
I judge your Composer to be insufficent
Rationale
We've worked on many projects with larger teams where developers end up with
multiple versions of composer all over their local environments. This plugin
will ensure that composer version warnings can't be ignored by developers, which
is especially useful when developers need to run composer update
.
Usage
$ composer global require deviantintegral/composer-gavel
Add plugin to your project and update other dependencies
$ composer require --dev deviantintegral/composer-gavel
$ composer update
Add without updating anything
$ composer require --dev deviantintegral/composer-gavel
- Update the composer.lock hash with
$ composer update --lock
.
When the running composer version does not satisfy the constraint, an error will be thrown.
It's recommended to require this plugin on a per-project basis as well as globally. If the plugin is not globally installed, then the version check will not run during the very first composer install or update. The per-project requirement ensures that the plugin is activated after the initial install. The composer version is a root-only key and is not used in dependencies.
All versions of composer-gavel with dependencies
composer-plugin-api Version ^2.0