Git hooks

Requirements

  • PHP >= 7.1

Installation

  • composer require --dev msamec/git-hooks
  • create .php_cs.dist inside root of your project

Documentation

This package will create git hooks that will trigger on git commit. At the moment two tools are running PHPStan and PHP CS FIXER.

PHPStan

Currently it will run using max level

PHP CS Fixer

It will run against configuration you have in your .php_cs.dist file