kartinatv/git-hook

Git hooks


License
MIT

Documentation

Git hooks

Initialization git hooks

Step 1

Add to composer.json script command:

{
  "scripts": {
    "post-install-cmd": [
      "ComposerHook\\Command\\ComposerHooks::preHooks"
    ],
    "post-update-cmd": [
      "ComposerHook\\Command\\ComposerHooks::preHooks"
    ]
  }
}

Step 2

composer require --dev kartinatv/git-hook