fig-r/psr2r-sniffer
PHP_CodeSniffer ruleset implementing PSR-2-R for PHP 8.1+ projects. Includes 190+ sniffs, supports CI, and can auto-fix many issues via phpcbf. Install with Composer and reference the bundled PSR2R ruleset in phpcs.xml.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| php-collective/code-sniffer | 0.89 | PHP_CodeSniffer ruleset from PhpCollective. PSR-2 compliant with many extra sniffs/fixers (incl. PSR-12) plus an optional stricter standard (PhpCollectiveStrict). Install via Composer and run phpcs/phpcbf, or wire into CI/IDE. | 6 | 6 | 0 | 20K | 0 | 29.3 | 56.0 | MIT | 1 week ago | |
| squizlabs/php_codesniffer | 0.87 | PHP_CodeSniffer (PHPCS) provides phpcs to detect coding standard violations and phpcbf to automatically fix them. Tokenizes PHP files against defined standards to keep code clean and consistent, suitable for teams and CI. | 1,491 | 1,693 | 97 | 6M | 158 | 59.4 | 89.6 | BSD-3-Clause | 4 months ago | |
| dealerdirect/phpcodesniffer-composer-installer | 0.84 | Composer installer plugin that automatically discovers and installs PHP_CodeSniffer coding standards (rulesets) from Composer packages. It configures PHPCS installed_paths for you, avoiding manual symlinks and configuration. Supports PHPCS 3/4 and Composer 2.2+. | 596 | 603 | 39 | 4M | 8 | 34.0 | 66.3 | MIT | 4 months ago | |
| phpcsstandards/phpcsextra | 0.84 | PHPCSExtra adds extra rules, sniffs, and tooling to enhance PHP_CodeSniffer code style checks. Designed to complement existing standards, it helps catch more issues, enforce consistency, and integrate smoothly into CI for cleaner PHP codebases. | 102 | 102 | 7 | 1M | 25 | 34.2 | 75.8 | LGPL-3.0 | 4 months ago | |
| phlak/coding-standards | 0.83 | Predefined PHP-CS-Fixer coding standards by PHLAK. Install as a dev dependency, initialize via composer exec cs init or create a config using ConfigFactory with a Finder, then run php-cs-fixer. Supports adding or overriding rules via ConfigFactory::make(). | 2 | 2 | 0 | 734 | 0 | 22.5 | 38.8 | MIT | 1 month ago | |
| phpcsstandards/phpcsdevtools | 0.82 | Developer tools for building and maintaining PHP_CodeSniffer standards. Helps scaffold sniffs, run and debug PHPCS rules, manage tests, and streamline local workflows so you can create, validate, and ship custom coding standards faster. | 16 | 16 | 6 | 9K | 4 | 24.1 | 47.3 | LGPL-3.0 | 9 months ago | |
| dms/coding-standard | 0.82 | DMS Coding Standard provides a customized PHPCS ruleset for consistent PHP code style across repositories. Based on PSR-1/PSR-2 with Doctrine flavor, enforcing strict_types declarations and return type spacing rules. | 1 | 1 | 1 | 24 | 0 | 20.9 | 18.1 | — | 2 years ago |
How can I help you explore Laravel packages today?