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

Installs: 6

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:composer-plugin

dev-master 2015-06-17 16:03 UTC

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

  1. install this package with composer
composer require zloesabo/githooks
  1. (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

  1. (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