pre-commit, pre-push) to ensure consistency in linting, testing, or build steps.husky for JS) by leveraging a PHP-native solution..git/hooks configuration.Adopt if:
.git/hooks with a Composer-managed solution (avoids unversioned scripts).Look elsewhere if:
husky, pre-commit (Python), or language-specific tools.lepture/git-hooks (more mature).For Executives:
"This package lets us standardize and version-control Git hooks—like automated tests or security checks—directly in our PHP repos. Instead of relying on manual .git/hooks scripts (which are often ignored or broken), we’ll use Composer to deploy hooks automatically. This reduces flaky CI builds, speeds up feedback loops, and ensures all devs follow the same workflow. Low maintenance, PHP-native, and integrates with our existing tooling like Robo."
For Engineering:
*"Problem: Git hooks are often unversioned, leading to inconsistent workflows (e.g., some devs skip linting).
Solution: sweetchuck/git-hooks lets us:
./git-hooks/pre-commit)..git/hooks/ on composer install.For Developers: *"No more ‘works on my machine’ hook issues! This package:
./git-hooks/ (version-controlled).composer install.php artisan test pre-commit).
Setup: Add to composer.json, create a pre-commit file, and boom—consistent workflows for everyone."*How can I help you explore Laravel packages today?