plhw / hf-git-hooks
This package is abandoned and no longer maintained.
No replacement package was suggested.
Common Git Hooks
0.3.1
2020-02-24 11:27 UTC
Requires
- php: ^7.1
Requires (Dev)
- composer/composer: ^1.7
- plhw/hf-cs-fixer-config: ^1.0
- symfony/console: ^3.4 || ^4.0 || ^5.0
README
Tool to automaticly installs hooks for repository in your ./.git/hooks
path.
Currently we have a pre-push hook that does the following;
- Checks for a valid composer.json and composer.lock.
- Check code style
INSTALLATION
composer require plhw/hf-git-hooks --dev
as a composer dependency.
Configuration
Add the following to your composer.json file.
"scripts": {
"pre-update-cmd": "HF\\GitHooks\\Installer::preHooks",
"pre-install-cmd": "HF\\GitHooks\\Installer::preHooks",
"post-update-cmd": "HF\\GitHooks\\Installer::postHooks",
"post-install-cmd": "HF\\GitHooks\\Installer::postHooks"
}