PHPackages                             deviantintegral/composer-gavel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. deviantintegral/composer-gavel

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

deviantintegral/composer-gavel
==============================

Enforce a minimum Composer version for your team

v1.0.0(8mo ago)8220.3k↓32.7%3[1 issues](https://github.com/deviantintegral/composer-gavel/issues)[1 PRs](https://github.com/deviantintegral/composer-gavel/pulls)MITPHPPHP ^8.2CI passing

Since Feb 27Pushed 2w ago1 watchersCompare

[ Source](https://github.com/deviantintegral/composer-gavel)[ Packagist](https://packagist.org/packages/deviantintegral/composer-gavel)[ RSS](/packages/deviantintegral-composer-gavel/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (2)Dependencies (6)Versions (37)Used By (0)

Composer Gavel
==============

[](#composer-gavel)

[    ![Gavel](img/noun_131778_cc.png) ](https://thenounproject.com/search/?q=gavel&i=131778)*I judge your Composer to be insufficent*

[![CI](https://github.com/deviantintegral/composer-gavel/actions/workflows/ci.yml/badge.svg)](https://github.com/deviantintegral/composer-gavel/actions/workflows/ci.yml) [![Packagist](https://camo.githubusercontent.com/15ba6c9a6fbd0997c9876617139320c57ea8e48a52dec0a6b22aee5fd459aefb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64657669616e74696e74656772616c2f636f6d706f7365722d676176656c2e737667)](https://packagist.org/packages/deviantintegral/composer-gavel)

Rationale
---------

[](#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
-----

[](#usage)

`$ composer global require deviantintegral/composer-gavel`

### Add plugin to your project and update other dependencies

[](#add-plugin-to-your-project-and-update-other-dependencies)

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

### Add without updating anything

[](#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.

[![gavel error](img/gavel-error.png)](img/gavel-error.png)

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.

###  Health Score

60

—

FairBetter than 98% of packages

Maintenance79

Regular maintenance activity

Popularity41

Moderate usage in the ecosystem

Community15

Small or concentrated contributor base

Maturity87

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~407 days

Recently: every ~450 days

Total

8

Last Release

242d ago

Major Versions

v0.6.0 → v1.0.02025-12-19

PHP version history (5 changes)0.1.0PHP &gt;=7.0.0

0.2.0PHP &gt;=5.6.0

0.4.0PHP &gt;=7.3

0.5.0PHP ^8.0

v0.6.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/2af6dd69ba6ab26b7beaf5e144c3a8248d3417db329a6288d72023070cbbab0f?d=identicon)[deviantintegral](/maintainers/deviantintegral)

---

Top Contributors

[![deviantintegral](https://avatars.githubusercontent.com/u/255023?v=4)](https://github.com/deviantintegral "deviantintegral (93 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (92 commits)")[![claude](https://avatars.githubusercontent.com/u/81847?v=4)](https://github.com/claude "claude (32 commits)")[![anotherjames](https://avatars.githubusercontent.com/u/557181?v=4)](https://github.com/anotherjames "anotherjames (4 commits)")[![darthsteven](https://avatars.githubusercontent.com/u/95782?v=4)](https://github.com/darthsteven "darthsteven (1 commits)")[![markdorison](https://avatars.githubusercontent.com/u/20355?v=4)](https://github.com/markdorison "markdorison (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/deviantintegral-composer-gavel/health.svg)

```
[![Health](https://phpackages.com/badges/deviantintegral-composer-gavel/health.svg)](https://phpackages.com/packages/deviantintegral-composer-gavel)
```

###  Alternatives

[symfony/runtime

Enables decoupling PHP applications from global state

740103.0M1.2k](/packages/symfony-runtime)[drupal/core-composer-scaffold

A flexible Composer project scaffold builder.

5346.5M600](/packages/drupal-core-composer-scaffold)[drupal/core-project-message

Adds a message after Composer installation.

2125.4M213](/packages/drupal-core-project-message)[phpro/grumphp-shim

GrumPHP Phar distribution

284.9M348](/packages/phpro-grumphp-shim)[automattic/jetpack-autoloader

Creates a custom autoloader for a plugin or theme.

566.3M167](/packages/automattic-jetpack-autoloader)[altis/core

Core module for Altis

19233.0k4](/packages/altis-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
