Text of pear.php.net › manual › en › package.php.php-codesniffer.php as Styx crawled it on Nov 20, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

Manual :: PHP_CodeSniffer

Register Login Main Support Documentation Packages Package Proposals Developers Bugs About PEAR Manual FAQ The phpDocumentor package provides automatic documenting of PHP code API directly from the source. (P r evious) Description and simple usage example (Ne x t) PEAR Manual PHP PHP_Archive phpDocumentor PHP_CodeSniffer PHP_Compat PHP_CompatInfo PHP_FunctionCallTracer PHP_UML PHPUnit PHPUnit2 Package Info API Documentation PHP_CodeSniffer PHP_CodeSniffer is a PHP5 script that tokenises and "sniffs" PHP, JavaScript and CSS files 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. Table of Contents Introduction — Description and simple usage example Requirements — A list of software requirements Usage — Standard usage information Advanced Usage — Advanced usage information Reporting — Report types and options Configuration Options — A list of configuration options Coding Standard Tutorial — A guide to writing your own code sniffs Annotated ruleset.xml — A sample ruleset.xml file that describes all features of the format Using the Subversion pre-commit Hook — How to configure the Subversion pre-commit hook FAQ — Frequently asked questions The phpDocumentor package provides automatic documenting of PHP code API directly from the source. (P r evious) Description and simple usage example (Ne x t) Last updated: Sat, 16 Feb 2019 — Download Documentation Do you think that something on this page is wrong?

Please file a bug report . View this page in: English User Notes: Note by: doconnor 2009-01-26 08:21 UTC PHP_CodeSniffer is pretty neat, because you can <a href="http://clockwerx.blogspot.com/2008/06/how-to-customise-phpcodesniffer.html">implement your own coding standards trivally</a>. PRIVACY POLICY | CREDITS Copyright © 2001-2026 The PHP Group All rights reserved. Bandwidth and hardware provided by: eUKhost