msamec/git-hooks

PHP Composter: PHPStan, PHPCsFixer (pre-commit)

Installs: 5 479

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:php-composter-action

v1.0.8 2019-03-27 17:16 UTC

This package is auto-updated.

Last update: 2024-10-28 05:16:43 UTC


README

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