WJBlog


Enforcing PHP Coding Standards with PHP_CodeSniffer

Published On: October 22, 2010 @ 11:52:40am

In light of PHP’s considerable expressive flexibility, how can you actively enforce a coding standard and prevent both yourself and your team members from reverting to bad habits? One great solution called PHP_CodeSniffer is (coincidentally) found in a PEAR package. PHP_CodeSniffer can not only parse PHP code to ensure it meets a particular coding standard but it can also examine your JavaScript and CSS files for potential standards violations.

Read on to learn how to use PHP_CodeSniffer!

» Read the tutorial