Git Clients

GrumPHP – PHP code quality checks using Git hooks

GrumPHP is a PHP code-quality tool that integrates automated checks into the Git workflow. It examines code before changes are committed, helping developers catch formatting problems, failing tests and violations of project standards.

The software works as a Composer plugin and registers Git hooks when installed as a development dependency. Project rules are defined in a YAML configuration file, so teams can enforce consistent standards without asking every contributor to remember a separate checklist.

GrumPHP can also run checks independently of Git commits, making it useful during development and in continuous integration pipelines.

This is free and open source software.

Key Features

  • Includes integrations with numerous development tools, including PHPStan, PHPUnit, PHPCS, PHP-CS-Fixer, Psalm, ESLint and YAMLlint.
  • Checks Git branch names and commit messages against configurable rules.
  • Offers built-in checks for file sizes, dependency configuration, duplicate code and vulnerable packages.
  • Runs tasks in parallel, with configurable worker limits and execution priorities.
  • Supports automatic code fixes through compatible formatting tools.
  • Lets developers make individual checks blocking or non-blocking, enable or disable tasks, and customise their settings.
  • Provides named test suites for running selected groups of checks.
  • Accepts staged file lists and Git diffs through standard input, allowing checks to target specific changes.
  • Supports custom tasks, extensions and alternative task-runner implementations.
  • Offers commands to initialise or remove Git hooks and run selected checks manually.

Website: github.com/phpro/grumphp
Support:
Developer: phpro
License: MIT License

GrumPHP in action

GrumPHP is written in PHP. Learn PHP with our recommended free books and free tutorials.


Related Software

Git Hook Managers
lefthookGit hooks manager for Node.js, Ruby, Python and more
huskyGit hooks made easy
pre-commitManage and maintain multi-language pre-commit hooks
prekReimagined version of pre-commit
overcommitManage and configure Git hooks
hkGit hooks manager and project linting tool focusing on performance
simple-git-hooksSimple git hooks manager for small projects
CaptainHookFlexible Git hook manager
GithooksPlatform-independent hooks manager
git-hooksRewritten from icefox/git-hooks, with extra features
JigGit pre-commit hook on steroids

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our carefully curated directory of recommended free and open source software, covering every major software category.

The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more.

Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted