PHP_CodeSniffer

Table of Contents
Introduction -- Description and simple usage example
Usage -- Standard usage information
Advanced Usage -- Advanced usage information
Configuration Options -- A list of configuration options
Coding Standard Tutorial -- A guide to writing your own code sniffs
Coding Standard Class Methods -- Information about overriding coding standard class methods
FAQ -- Frequently asked questions

PHP_CodeSniffer is a PHP5 script that tokenises and "sniffs" PHP code to detect violations of a defined set of coding standards. It is an essential development tool that ensures that your code remains clean and consistent. It can even help prevent some common semantic errors made by developers.