phppsr-0psr-2psr-1

PHP PSR validator


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 ?


Solution

  • 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