-1

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 ?

Kamrul Khan
  • 3,260
  • 4
  • 32
  • 59
  • 1
    By 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 Answers2

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
2

You probably want to look at PHP_CodeSniffer.

jbafford
  • 5,528
  • 1
  • 24
  • 37