tacone/psr-police

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

Installs: 27

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 1

Open Issues: 0

pkg:composer/tacone/psr-police

1.04 2015-01-04 21:35 UTC

This package is not auto-updated.

Last update: 2025-09-27 21:17:01 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