2017 © Pedro Peláez
 

composer-plugin composer-gavel

Enforce a minimum Composer version for your team

image

deviantintegral/composer-gavel

Enforce a minimum Composer version for your team

  • Wednesday, July 18, 2018
  • by deviantintegral
  • Repository
  • 1 Watchers
  • 5 Stars
  • 2,300 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 157 % Grown

The README.md

Composer Gavel

Gavel, (*1)

I judge your Composer to be insufficent, (*2)

CircleCI Maintainability Test Coverage Packagist, (*3)

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., (*4)

Usage

$ composer global require deviantintegral/composer-gavel, (*5)

Add plugin to your project and update other dependencies

  1. $ composer require --dev deviantintegral/composer-gavel
  2. $ composer update

Add without updating anything

  1. $ composer require --dev deviantintegral/composer-gavel
  2. Update the composer.lock hash with $ composer update --lock.

When the running composer version does not satisfy the constraint, an error will be thrown., (*6)

gavel error, (*7)

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., (*8)

The Versions

18/07 2018

dev-master

9999999-dev

Enforce a minimum Composer version for your team

  Sources   Download

MIT

The Requires

  • composer-plugin-api ^1.1
  • php >=5.6.0

 

The Development Requires

18/07 2018

0.2.0

0.2.0.0

Enforce a minimum Composer version for your team

  Sources   Download

MIT

The Requires

  • php >=5.6.0
  • composer-plugin-api ^1.1

 

The Development Requires

27/02 2018

0.1.0

0.1.0.0

Enforce a minimum Composer version for your team

  Sources   Download

MIT

The Requires

  • php >=7.0.0
  • composer-plugin-api ^1.1

 

The Development Requires