Marlon Coding Standards PHP Codesniffer You'll need PEAR's PHP_CodeSniffer 1.3+. Run it using phpcs --standard=path/to/php/ruleset.xml path/to/yourcode/ PHPMD - PHP Mess Detector You'll need PEAR's PHPMD: http://phpmd.org/