Top Level :: PHP

Package Information: PHP_CodeSniffer

» Summary » License
PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files to detect and fix violations of a defined set of coding standards. BSD 3-Clause License
» Current Release  
3.7.2 (stable) was released on 2023-02-22 by squiz (Changelog)
Easy Install

Not sure? Get more info.

pear install PHP_CodeSniffer

Pyrus Install

Try PEAR2's installer, Pyrus.

php pyrus.phar install pear/PHP_CodeSniffer

» Description
PHP_CodeSniffer is a set of two PHP scripts; the main phpcs script that tokenizes PHP, JavaScript and CSS files to detect violations of a defined coding standard, and a second phpcbf script to automatically correct coding standard violations. PHP_CodeSniffer is an essential development tool that ensures your code remains clean and consistent.
» Maintainers » More Information

Dependencies for PHP_CodeSniffer

  • PHP 5.4.0
  • PEAR Installer 1.4.0b1
  • tokenizer extension
  • xmlwriter extension
  • simplexml extension