I am looking for a tool that can check my PHP codes and automatically update into as per PSR standard or atleast point out the places where code violates PSR standards. Google search was not too helpful. Is there a tool that can do it ?
Asked
Active
Viewed 2,308 times
-1
-
1By asking for an off-site resource your question is probably [off-topic](http://stackoverflow.com/help/on-topic). – Wai Ha Lee Jan 08 '16 at 22:47
2 Answers
3
For PSR-0, PSR-1 and PSR-2 use the PHP coding standard fixer
Install it via composer:
./composer.phar global require fabpot/php-cs-fixer

Gerard Rozsavolgyi
- 4,834
- 4
- 32
- 39