captainhook/hook-installer
Composer plugin for CaptainHook that automatically installs and updates your local Git hooks after composer install/update, helping ensure your whole team has hooks enabled. Supports custom config/executable paths and optional force/only-enabled settings.
composer install, cutting down on repetitive setup steps and reducing onboarding time.Adopt if:
Look elsewhere if:
For Executives: "This package automates Git hook setup for our PHP/Laravel teams, ensuring everyone runs critical checks (e.g., tests, security scans) before committing—without manual reminders. It integrates seamlessly with Composer, reducing onboarding time and improving code quality consistency. Low-risk (MIT license, minimal overhead), and it aligns with our shift-left testing goals."
For Engineering/DevOps:
*"CaptainHook’s hook-installer lets us enforce pre-commit hooks automatically during composer install, eliminating ‘I forgot to enable hooks’ issues. It’s a lightweight Composer plugin that works with our existing CaptainHook setup. Key benefits:
pre-commit).For Developers:
"Tired of remembering to run captainhook install? This plugin does it for you after composer install. Just add it to composer.json, and your hooks (e.g., PHPStan, Pest) run automatically. Customize paths or enabled hooks via config—no more ‘works on my machine’ excuses!"
How can I help you explore Laravel packages today?