Collection of git hooks, used in symfony projects
This project was inspired by a copy&paste solution of different internal projects and by other existing projects which were
- some kind of overkill (https://github.com/bruli/php-git-hooks)
- very specialized (https://github.com/partnermarketing/pm-git-hooks-php)
- too configurable (https://github.com/aequasi/git-hook-handler).
The goal is to build a package, than can be installed automatically in no time and will do just 2-3 simple checks. Also it should only consider Symfony2 coding standards and nothing else.
- Add package to composer
composer require kuborgh/symfony-git-hooks @dev-master
- Add scripts to composer (as it can not be done automatically composer/composer#1193)
"scripts": {
"post-package-install": [
"Kuborgh\\GitHook\\ComposerInstaller::installHooks"
],
"post-package-update": [
"Kuborgh\\GitHook\\ComposerInstaller::installHooks"
]
}