Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tacone/psr-police

Installs php-cs-fixer git hook automatically using a composer script
https://github.com/tacone/psr-police

Last synced: 7 days ago
JSON representation

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

Awesome Lists containing this project

README

        

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:

```sh
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
```