Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/tacone/psr-police
- Owner: tacone
- Created: 2014-12-31T14:10:22.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-04T21:50:14.000Z (almost 10 years ago)
- Last Synced: 2024-04-03T00:54:09.022Z (8 months ago)
- Language: PHP
- Size: 148 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```