GrumPHP

(( gitHubWatchers )) (( gitHubStars )) (( gitHubForks ))

GrumPHP will register some git hooks in your package repository. When somebody commits changes, GrumPHP will run some tests on the committed code.

If the tests fail, you won't be able to commit your changes. This handy tool will not only improve your codebase, it will also teach your co-workers to write better code following the best practices you've determined as a team.

Watch out! GrumPHP is sniffing your commits!

Installation

Install from a Composer package as a dev dependency (with Composer)

Make sure you have Composer and all dependencies git installed.

Require it as a dev dependency:
composer require --dev phpro/grumphp
Run it:
php vendor/bin/grumphp

Install from a Composer package as a global CLI utility (with Composer)

Make sure you have Composer and all dependencies git installed.

Require it as a global CLI utility:
composer global require phpro/grumphp
Run it:
grumphp
Make sure your global vendor binaries directory is in your $PATH environment variable. Check the Composer documentation for more information.