PHPackages                             captainhook/grumphp - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. captainhook/grumphp

ActiveComposer-plugin[Testing &amp; Quality](/categories/testing)

captainhook/grumphp
===================

GrumPHP-Integration for CaptainHook

0.2.0(6y ago)113.9kMITPHP ^7.2|^8.0

Since Mar 10Compare

[ Source](https://github.com/captainhookphp/GrumPHP)[ Packagist](https://packagist.org/packages/captainhook/grumphp)[ RSS](/packages/captainhook-grumphp/feed)WikiDiscussions Synced 3d ago

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

Captainhook - GrumPHP
=====================

[](#captainhook---grumphp)

Integrate [GrumPHP](https://github.com/phpro/grumphp) into CaptainHook.

This package allows you to use GrumPHP as one of the hooks for CaptainHook.

Installation:
-------------

[](#installation)

```
composer require captainhook/grumphp
```

That should set up everything as you need it. You might want to tweak your `grumphp.yml`-File according to your needs. More details on that can be found in the [GrumPHP-Documentation](https://github.com/phpro/grumphp#configuration)

Your `captainhook.json` should afterwards cnotain the following sections:

```
{
    "pre-commit": {
        "enabled": true,
        "actions": [{
            "action" : "DIFF=$(git -c diff.mnemonicprefix=false --no-pager diff -r -p -m -M --full-index --no-color --staged | cat); printf \"%s\n\" \"${DIFF}\" | exec ./vendor/bin/grumphp git:pre-commit --skip-success-output",
            "options" : []
        }]
    },
    "commit-msg" : {
        "enabled" : true,
        "actions" : [{
            "action" : "GIT_USER=$(git config user.name);GIT_EMAIL=$(git config user.email);COMMIT_MSG_FILE={$FILE};DIFF=$(git -c diff.mnemonicprefix=false --no-pager diff -r -p -m -M --full-index --no-color --staged | cat);printf \"%s\n\" \"${DIFF}\" | exec ./vendor/bin/grumphp git:commit-msg \"--git-user=$GIT_USER\" \"--git-email=$GIT_EMAIL\" \"$COMMIT_MSG_FILE\"",
            "options" : []
        }]
    }
}
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 54.5% of commits — single point of failure

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 ~435 days

Total

2

Last Release

2234d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9250358?v=4)[Sebastian Feldmann](/maintainers/sebastianfeldmann)[@sebastianfeldmann](https://github.com/sebastianfeldmann)

---

Top Contributors

[![heiglandreas](https://avatars.githubusercontent.com/u/91998?v=4)](https://github.com/heiglandreas "heiglandreas (6 commits)")[![Ig0r-M-magic42](https://avatars.githubusercontent.com/u/22006850?v=4)](https://github.com/Ig0r-M-magic42 "Ig0r-M-magic42 (4 commits)")[![sebastianfeldmann](https://avatars.githubusercontent.com/u/9250358?v=4)](https://github.com/sebastianfeldmann "sebastianfeldmann (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/captainhook-grumphp/health.svg)

```
[![Health](https://phpackages.com/badges/captainhook-grumphp/health.svg)](https://phpackages.com/packages/captainhook-grumphp)
```

###  Alternatives

[phpro/grumphp

A composer plugin that enables source code quality checks.

4.3k16.3M981](/packages/phpro-grumphp)[dealerdirect/phpcodesniffer-composer-installer

PHP\_CodeSniffer Standards Composer Installer Plugin

608175.5M2.3k](/packages/dealerdirect-phpcodesniffer-composer-installer)[youwe/testing-suite

Contains Youwe's default testing packages for php.

13186.2k8](/packages/youwe-testing-suite)[axelerant/drupal-quality-checker

Code quality checking tools for Drupal project.

13200.9k1](/packages/axelerant-drupal-quality-checker)

PHPackages © 2026

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