zloesabo / githooks
This package is abandoned and no longer maintained.
No replacement package was suggested.
There is no license information available for the latest version (dev-master) of this package.
Git Hooks manager
dev-master
2015-06-17 16:03 UTC
Requires
- php: >=5.4
- composer-plugin-api: ^1.0
- symfony/console: >=2.3
- symfony/filesystem: >=2.3
- symfony/finder: >=2.3
- symfony/process: >=2.3
This package is not auto-updated.
Last update: 2022-09-17 05:53:39 UTC
README
Description
Tired of commiting files with syntax errors all over again? Got var_dump pushed to production once again? Use this library to perform checks every time you commit something.
Usage
- install this package with composer
composer require zloesabo/githooks
- (optional) modify your project's composer.json "extra" section to include your custom hooks
"extra": { "git-hooks": [ "src/Prefix/HookDirectory", "@default" ] }
You can also omit this to use default hooks
- (optional) Write some custom hooks
Your hooks must implement HookInterface to be loaded by hook loader.
TODO's
Tests
Different hook types
PHP < 5.4
Take care of existing hooks during install