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). Install via composer, add the provided ruleset to phpcs.xml, and run phpcs/phpcbf (or composer scripts) to check and auto-fix coding style. | 7 | 7 | 0 | 21K | 0 | 29.9 | 55.4 | MIT | 1 month 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 | 18.4 | 34.7 | MIT | 6 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. | 38 | 38 | 12 | 45K | 6 | 31.4 | 52.6 | MIT | 3 weeks 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,534 | 1,731 | 112 | 7M | 169 | 46.3 | 74.9 | BSD-3-Clause | 8 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 | 9 | 0 | 0.0 | 13.8 | 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 | 24 | 0 | 0.1 | 19.3 | 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 | 2K | 0 | 27.2 | 42.7 | MIT | 1 month 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 | 912 | 0 | 15.3 | 38.2 | MIT | 4 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 | 15K | 4 | 4.2 | 42.9 | LGPL-3.0 | 1 year 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 | 45 | 0 | 0.9 | 18.9 | — | 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 | 38 | 0 | 0.4 | 22.0 | — | 12 years ago | |
| smarty/smarty-lexer | 0.65 | Generates the lexer and parser class files used by the Smarty templating engine. Automatically configured via Composer since Smarty 3.1.35. Supports PHP 7.1–8.2. | 12 | 13 | 8 | 595 | 0 | 6.9 | 23.1 | — | 3 years ago | |
| doctrine/lexer | 0.65 | Doctrine Lexer is a lightweight base library for building lexers used in top-down, recursive descent parsers. It powers tokenization in Doctrine projects like Annotations and ORM (DQL), providing a reusable foundation for custom language parsing. | 11,152 | 11,172 | 65 | 15M | 2 | 31.0 | 43.3 | MIT | 2 years ago | |
| jms/parser-lib | 0.62 | jms/parser-lib is a lightweight PHP parser library by JMS, providing reusable parsing components to build custom parsers quickly. Ideal for interpreting structured text and creating DSLs. Full docs available at jmsyst.com/libs/parser-lib. | 827 | 834 | 15 | 174K | 1 | 5.0 | 32.1 | Apache-2.0 | 4 years ago | |
| aitradeinc/symfony-entity-generator | 0.61 | — | 0 | 0 | 1 | 0 | 0 | 4.2 | — | — | 4 years ago |
How can I help you explore Laravel packages today?