ob / hooker
Sensible git hooks for your projects
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 2
Open Issues: 0
pkg:composer/ob/hooker
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.

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.