msamec / git-hooks
PHP Composter: PHPStan, PHPCsFixer (pre-commit)
Installs: 5 479
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:php-composter-action
pkg:composer/msamec/git-hooks
Requires
- php: ~7.1
- friendsofphp/php-cs-fixer: ^2.13
- php-composter/php-composter: ^0.3.3
- phpstan/phpstan: ^0.11
README
Requirements
- PHP >= 7.1
Installation
- composer require --dev msamec/git-hooks
- create .php_cs.distinside 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