captainhook/plugin-composer

Composer-Plugin handling your git-hooks

Installs: 46 199

Dependents: 33

Suggesters: 0

Security: 0

Stars: 8

Watchers: 3

Forks: 1

Open Issues: 3

Type:composer-plugin

5.2.1 2020-05-08 15:15 UTC

This package is auto-updated.

Last update: 2020-07-01 20:54:35 UTC


README

This is a composer-plugin that makes sure your team mates install the git hooks. For more information visit its Website.

Latest Stable Version Minimum PHP Version Downloads License

Installation:

As this is a composer-plugin the preferred method is to use composer for installation.

$ composer require --dev captainhook/plugin-composer

Everything else will happen automagically.

Customize

You can set a custom name for your hook configuration. If you want to use the PHAR release of CaptainHook you can configure the path to the PHAR file. All extra config settings are optional and if you are using the default settings you do not have to configure anything to make it work.

{
  "extra": {
    "captainhook": {
      "config": "hooks.json",
      "exec": "tools/captainhook.phar",
      "disable-plugin": false
    }    
  }  
}

A word of warning

It is still possible to commit without invoking the hooks. So make sure you run appropriate backend-sanity checks on your code!