Sunday, October 25, 2026 4,350 lists 78,100 records on file
List your app or device

  1. Home
  2. Linters
  3. PHP_CodeSniffer

PHP_CodeSniffer

Plans and prices

PHP_CodeSniffer

Free

BSD-3-Clause license · requires PHP 7.2.0 or greater

Every plan, in full

On the record

Automatic fixes
It includes phpcbf, a script that automatically corrects coding standard violations.github.com · read 11 Oct 2026
Built-in standards
The included standards include PEAR, PSR1, PSR2, PSR12, Squiz, and Zend.github.com · read 11 Oct 2026
CI usage
The project documentation suggests configuring project settings when using PHP_CodeSniffer on a team or CI server.github.com · read 11 Oct 2026
Custom standards
Users can install external coding standards and configure checks with ruleset files.github.com · read 11 Oct 2026
Download verification
The project says its PHAR files are signed with its official release key and that release PHAR provenance can be verified through GitHub Artifact Attestations.github.com · read 11 Oct 2026
File scope
It checks specified files or directories and can recursively scan a directory's subfolders.github.com · read 11 Oct 2026
Installation
The project documents installation through PHAR downloads, Composer, Phive, or a Git clone.github.com · read 11 Oct 2026
License
The repository identifies PHP_CodeSniffer as BSD-3-Clause licensed.github.com · read 11 Oct 2026
Parallel scans
The command supports parallel processing, which requires PHP's PCNTL extension and is disabled by default.github.com · read 11 Oct 2026
Purpose
PHP_CodeSniffer tokenizes PHP files and detects violations of a defined coding standard.github.com · read 11 Oct 2026
Reports
Available report formats include full, XML, Checkstyle, CSV, JSON, JUnit, Emacs, source, summary, diff, and performance.github.com · read 11 Oct 2026
Runtime requirement
PHP_CodeSniffer requires PHP version 7.2.0 or greater, and individual sniffs may have additional requirements.github.com · read 11 Oct 2026
Support
The project directs users to its GitHub issue tracker for bug reports and feature requests and to its wiki for documentation.github.com · read 11 Oct 2026

Alternatives to PHP_CodeSniffer

Every alternative, ranked