msamec / git-hooks
PHP Composter: PHPStan, PHPCsFixer (pre-commit)
v1.0.8
2019-03-27 17:16 UTC
Requires
- php: ~7.1
- friendsofphp/php-cs-fixer: ^2.13
- php-composter/php-composter: ^0.3.3
- phpstan/phpstan: ^0.11
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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