zloesabo / githooks
Git Hooks manager
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:composer-plugin
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