JavaScript Editor Javascript validator     Web page editor 


Introduction -- Description and simple usage example


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

A coding standard, in PHP_CodeSniffer, is a collection of sniff files. Each sniff file checks one part of the coding standard only. Multiple coding standards can be used within PHP_CodeSniffer, so that the one installation can be used across multiple projects. The default coding standard used by PHP_CodeSniffer is the PEAR coding standard.


To check a file against the PEAR coding standard, simply specify the file's location.

Or, if you wish to check an entire directory, you can specify the directory location instead of a file.

JavaScript Editor Javascript validator     Web page editor