tacone/psr-police

Install php-cs-fixer git hook automatically using a script

1.04 2015-01-04 21:35 UTC

This package is not auto-updated.

Last update: 2024-04-27 14:17:29 UTC


README

A handy tool to add a PHP syntax check and PSR-2 enforcement git pre-commit hook to your project.

Install it globally like:

phpcomposer global require tacone/psr-police

Then make sure ~/.composer/vendor/bin is in your PATH.

From now on you can enforce PSR-2 on every commit by calling PSR Police (once per project):

cd /var/www/myproject
psr-police