Registry / build-tool / phpcsstandards-php-codesniffer

phpcsstandards-php-codesniffer

JSON →
library4.0.1phppackagistunverified

PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.

composer require phpcsstandards/php_codesniffer
INSTALL
IMPORT
SIG · PHPCSSTANDARDS-PHP
P
phpcsstandards-php-codesniffer
build-toolphpv4.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Runner
use PHP_CodeSniffer\Runner;

Run PHP_CodeSniffer with PSR-12 standard

use PHP_CodeSniffer\Runner; $runner = new Runner(); $runner->config->standards = ['PSR12']; $runner->config->files = ['/path/to/file.php']; $runner->run();
Debug
Known issues
breakingVersion 4.0 has breaking changes from 3.x; check migration guide
fix
Review changelog and update custom sniffs accordingly
affects: >=4.0.0
Upgrade
Version history
4.0.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
14
OpenAI (training)
1
Resources
phpcsstandards-php-codesniffer — pip install phpcsstandards-php-codesniffer · libregistry