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.88 | PHP CodeSniffer rulesets from PhpCollective: PSR-2 compliant with many extra sniffs/fixers (incl. PSR-12) plus a stricter PhpCollectiveStrict standard. Install via Composer, configure phpcs.xml, run phpcs/phpcbf to check and auto-fix code style. | 7 | 7 | 0 | 40K | 0 | 29.8 | 57.4 | MIT | 1 week ago | |
| moxio/php-codesniffer-sniffs | 0.88 | Custom PHP_CodeSniffer 3.x sniffs from Moxio to catch subtle PHP bugs and unexpected behavior. Provides a standalone ruleset or individual sniffs for other standards, enforcing safer comparisons, strict base64_decode, switch continue rules, and more. | 17 | 18 | 11 | 4K | 0 | 20.9 | 35.5 | MIT | 4 months ago | |
| spryker/code-sniffer | 0.87 | Spryker Code Sniffer is a PHP_CodeSniffer ruleset for Spryker projects. Enforces Spryker coding standards and best practices, supports automated code style checks in CI, and helps keep code consistent across teams and modules. | 37 | 37 | 12 | 40K | 6 | 25.8 | 50.1 | MIT | 3 months 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,513 | 1,713 | 106 | 6M | 162 | 48.4 | 76.3 | BSD-3-Clause | 6 months ago | |
| sandfox.dev/code-standard | 0.87 | Shared coding standards and tooling used across sandfox.dev PHP/Laravel packages. Provides a consistent rule set for formatting and static analysis to keep code style uniform, reduce review friction, and maintain quality across projects. | 0 | 0 | 0 | 6 | 0 | 0.0 | 11.7 | MIT-0 | — | |
| shiftonelabs/codesniffer-standard | 0.87 | Opinionated PHP_CodeSniffer ruleset by ShiftOneLabs. Provides a shared coding standard for consistent style, formatting, and best practices across PHP/Laravel projects. Easy to install and run with phpcs in CI or local development. | 0 | 0 | 1 | 33 | 0 | 0.1 | 21.2 | MIT | — | |
| pccomponentes/coding-standard | 0.84 | PcComponentes Coding Standard adds PHP_CodeSniffer sniffs to enforce consistent PHP style. Install via Composer as a dev dependency and reference vendor/pccomponentes/coding-standard/src/ruleset.xml in your phpcs.xml(.dist) to apply the rules. | 3 | 3 | 3 | 1K | 0 | 18.9 | 37.9 | MIT | 6 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 | 941 | 0 | 17.2 | 39.0 | MIT | 3 months 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. | 17 | 17 | 6 | 13K | 4 | 4.7 | 42.7 | LGPL-3.0 | 11 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 | 160 | 0 | 0.9 | 26.4 | — | 2 years ago | |
| jakub-onderka/php-code-style | 0.82 | A PHP coding style toolkit for consistent formatting and style enforcement across projects. Helps standardize code layout and conventions, making reviews easier and reducing style-related noise in diffs for teams and CI pipelines. | 0 | 0 | 1 | 34 | 0 | 0.4 | 21.3 | — | 12 years ago |
How can I help you explore Laravel packages today?