Skip to content

Installs php-cs-fixer git hook automatically using a composer script

Notifications You must be signed in to change notification settings

MyLittleParis/psr-police

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PSR Police

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

About

Installs php-cs-fixer git hook automatically using a composer script

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%