# phpro/grumphp

A PHP code-quality tool

Repository: https://github.com/phpro/grumphp
Canonical: https://ross.abutalabs.com/products/grumphp
Language: PHP
License: MIT
License Family: permissive
Topics: code-quality, php, git-hooks, composer-plugin, hacktoberfest
Last push: 2026-08-11T09:34:59+00:00

## Health v2 (maintenance only)
Score: 92/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 97, release rhythm 82, longevity 100
- inputs: {"age_days": 4186, "days_push": 22, "days_rel": 42, "gap_med": 45, "n_releases_24m": 16}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4311, forks 450 (observed 2026-08-28T04:08:41.782090+00:00)

## What it is
GrumPHP is a PHP code-quality tool implemented as a Composer plugin that registers git hooks in your repository. When a developer commits changes, it runs configured quality tasks (linters, tests, static analysis) and blocks the commit if they fail.

## Use cases
- enforce code quality checks before every git commit
- run PHP linters and tests automatically via git hooks
- stop teammates from committing code that violates team standards
- set up pre-commit quality gates for a PHP project
- configure a customizable set of code-quality tasks with minimal setup

## When to choose
- you maintain a PHP project using Composer and Git
- you want commit-time enforcement of linting, testing, or static analysis
- you need a configurable, task-based quality gate with many built-in tasks

## When to avoid
- your project is not PHP or not managed with Composer
- you only want CI-time checks without local git hooks
- you cannot allow a tool to overwrite existing git hooks

## Facets
- artifact type: plugin
- maturity: active
- function: testing, linter, ci-cd, developer-tools, code-review
- domain: developer-tools, testing, version-control
- platform: php, cli, cross-platform
- tags: git-hooks, composer-plugin, code-quality, pre-commit, php, automation

## Member repositories
- phpro/grumphp (main) score 92

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:41.782090+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:21:47.400862+00:00, confidence not recorded.
  - readme: https://github.com/phpro/grumphp (fetched 2026-08-28T04:08:41.782090+00:00, sha c3e780857d99)
- Data as of 2026-08-30T08:39:29.467469+00:00.
