ob / hooker
This package is abandoned and no longer maintained.
No replacement package was suggested.
Sensible git hooks for your projects
dev-master / 1.0.x-dev
2015-01-21 23:47 UTC
Requires
- php: >=5.3
- phpmd/phpmd: ~2.1
- squizlabs/php_codesniffer: ~1.5
- symfony/console: ~2.3
Requires (Dev)
- phpunit/phpunit: ~4.2
This package is not auto-updated.
Last update: 2020-01-12 16:27:12 UTC
README
Sensible git hooks for your projects.
![Gitter](https://badges.gitter.im/Join Chat.svg)
Installation
-
Execute
$ composer require --dev ob/hooker=1.0.x-dev
-
Copy the hooker config
cp vendor/ob/hooker/hooker.yml.dist hooker.yml.dist
and tweak it to suit your needs -
Add the command to your project's
.git/hooks/pre-commit
hook
#!/bin/sh
./vendor/bin/hooker hook:pre-commit
- Finally, make it executable
$ chmod +x .git/hooks/pre-commit
License
Hooker is released under the MIT License. See the bundled LICENSE file for details.