phpro/grumphp
GrumPHP is a Composer plugin that installs Git hooks to run quality checks on every commit. It executes configured tasks like tests and linters, blocks failing commits, and helps teams enforce coding standards and best practices automatically.
grumphp/phpunit, grumphp/phplint) instead of reinventing wheels.Adopt if:
phpcs before committing").Look elsewhere if:
Problem:
"We’re shipping bugs because devs skip tests or linting. Manual reviews are slow, and our CI pipeline is bloated with redundant checks. This costs us $X/year in rework and delayed features."
Solution:
"GrumPHP is a git hook that automatically blocks bad commits—like a force field for code quality. It runs locally before devs even push, saving CI time and reducing bugs. Teams using it see 30% fewer PR discussions and 40% faster onboarding."
ROI:
Ask:
"Approve a 2-week pilot with Team X to measure impact. If successful, roll out to all PHP services."
Why GrumPHP?
Implementation Plan:
auth-service). Configure:
stop_on_failure: true to block bad commits.grumphp/jsonlint).Key Config Snippet:
grumphp:
tasks:
phpcs:
standard: "PSR12"
triggered_by: ["php"]
phpunit:
config_file: "phpunit.xml"
stop_on_failure: true
securitychecker_securitychecker:
level: "high"
end_point: "https://security.scan.mycompany.com"
stop_on_failure: true # Block commits if any task fails
Trade-offs:
--no-verify).Next Steps:
git commit --no-verify for emergencies).How can I help you explore Laravel packages today?