PHP_CodeSniffer
PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.
- Type
- Analyzer
- PHP
- >=7.2.0
- License
- BSD-3-Clause
- Install
- composer require --dev phpcsstandards/php_codesniffer
Quick pros & cons for PHP_CodeSniffer
ProSupports established standards and detailed custom sniffs.
ConLarge standards need configuration and can produce many findings.
Evidence: Source 1
Editorially reviewed