cuonggt / hooky
An opinionated git hooks tool for PHP.
Installs: 1 194
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^7.3|^8.0
- symfony/console: ^4.0|^5.0|^6.0
- symfony/process: ^4.2|^5.0|^6.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.16
- phpstan/phpstan: ^1.10
This package is auto-updated.
Last update: 2024-10-29 06:47:00 UTC
README
Introduction
Hooky is an opinionated git hooks tool for PHP artisan. Hooky is heavily inspired by husky and make it simple to lint your commit messages, lint code, run tests, etc... when you commit or push.
Installation
First, install Hooky into your project using the Composer package manager:
composer require --dev cuonggt/hooky
Then run the install command:
vendor/bin/hooky install
Usage
Add a hook:
vendor/bin/hooky add .hooky/pre-commit "vendor/bin/phpunit"
Make a commit:
git add .hooky/pre-commit git commit -m "Keep calm and commit" # `vendor/bin/phpunit` will run
License
Hooky is open-sourced software licensed under the MIT license.