plhw / hf-git-hooks
Common Git Hooks
Installs: 445
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/plhw/hf-git-hooks
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"
}