plhw/hf-git-hooks

This package is abandoned and no longer maintained. No replacement package was suggested.

Common Git Hooks

0.3.1 2020-02-24 11:27 UTC

This package is auto-updated.

Last update: 2021-02-19 08:27:13 UTC


README

Tool to automaticly installs hooks for repository in your ./.git/hooks path.

Currently we have a pre-push hook that does the following;

  • Checks for a valid composer.json and composer.lock.
  • Check code style

INSTALLATION

composer require plhw/hf-git-hooks --dev as a composer dependency.

Configuration

Add the following to your composer.json file.

"scripts": {
   	"pre-update-cmd": "HF\\GitHooks\\Installer::preHooks",
   	"pre-install-cmd": "HF\\GitHooks\\Installer::preHooks",
	"post-update-cmd": "HF\\GitHooks\\Installer::postHooks",
	"post-install-cmd": "HF\\GitHooks\\Installer::postHooks"
}