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
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 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 | 3K | 0 | 16.6 | 33.4 | MIT | 9 months ago | |
| phpcsstandards/phpcsdevtools | 0.87 | Developer toolkit for PHP_CodeSniffer sniff authors. Check that every sniff in a standard is feature complete, debug sniffs with detailed trace output, and validate documentation XSD files. Install locally, globally, or stand-alone via Composer. | 17 | 17 | 6 | 14K | 5 | 24.6 | 49.8 | LGPL-3.0 | 4 days ago | |
| spryker/code-sniffer | 0.87 | Spryker Code Sniffer is a PHPCS ruleset for PHP 8.3+ that follows PSR-2 and PSR-12 with extra Spryker convention sniffs. It ships Spryker, SprykerStrict, and opt-in SprykerConventions standards, and works via phpcs/phpcbf. | 37 | 38 | 12 | 59K | 5 | 29.0 | 52.8 | MIT | 2 months ago | |
| phpcsstandards/phpcsdevcs | 0.86 | phpcsdevcs provides a set of PHP_CodeSniffer rules and configuration to enforce consistent coding standards across PHP projects. Drop-in standards for PHPCS with sensible defaults, helping teams catch style issues early and keep code clean and uniform. | 9 | 9 | 1 | 12K | 4 | 7.0 | 44.4 | LGPL-3.0 | 10 months ago | |
| psr/container | 0.86 | The PSR-11 Container Interface defines core abstractions for dependency injection in PHP. It’s a standard abstraction, not an implementation—used by DI containers like Laravel’s Illuminate\Container. Essential for dependency management, ensuring interoperability across container implementations. | 9,992 | 10,026 | 54 | 30M | 3 | 29.7 | 49.4 | MIT | 5 years ago | |
| suin/phpcs-psr4-sniff | 0.86 | suin/phpcs-psr4-sniff is a PHP_CodeSniffer sniff that validates PSR-4 autoloading rules, flagging namespace, directory, and filename mismatches so Composer autoloading stays reliable in Laravel and other PHP projects. | 27 | — | 17 | — | 0 | 0.9 | 0.4 | — | 5 years ago |
|
| ongr/ongr-strict-standard | 0.86 | A strict PHP_CodeSniffer coding standard from ONGR that enforces clean, consistent, high-quality PHP code. Built on PSR standards with additional rules for formatting, naming, and code structure, it helps teams catch style issues early and keep codebases readable and maintainable. | 13 | 13 | 14 | 122 | 21 | 6.7 | 20.4 | MIT | 11 years ago | |
| vierwd/coding-standard | 0.86 | PHP coding standard ruleset from VIERWD built on PHP_CodeSniffer, with sniffs and automatic fixes that enforce a consistent code style across PHP and Laravel projects. Install via Composer and run it in CI or your editor to lint and auto-format code. Includes ready-made rulesets for quick setup. | 0 | 0 | 0 | 14 | 0 | 0.0 | 16.2 | MIT | 3 years ago | |
| squizlabs/php_codesniffer | 0.86 | PHP_CodeSniffer tokenizes PHP files to detect coding standard violations and automatically fix them. It ships two scripts: phpcs for sniffing and phpcbf for auto-correction, keeping code clean and consistent across teams and CI. The official continuation of the Squizlabs package. | 1,567 | 1,739 | 119 | 7M | 174 | 56.6 | 81.9 | BSD-3-Clause | 3 months ago | |
| keboola/coding-standard | 0.85 | Keboola Coding Standard provides PHP_CodeSniffer rules and sniffs for enforcing consistent code style across Keboola PHP projects. It bundles customizable rule sets that help teams catch style issues early and keep codebases clean, readable, and maintainable. | 1 | 1 | 0 | 5K | 7 | 6.5 | 50.7 | MIT | 9 months ago | |
| sandfox.dev/code-standard | 0.85 | 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 | 97 | 0 | 0.0 | 27.5 | MIT-0 | — | |
| mreduar/laravel-phpcs | 0.85 | Laravel PHPCS brings an opinionated PHP CodeSniffer ruleset and handy Artisan commands to your Laravel project, making it easy to lint code and auto-fix style issues so teams can enforce consistent coding standards and catch problems early. | 38 | 39 | 1 | 265 | 0 | 0.5 | 12.3 | MIT | 4 years ago | |
| artisanpack-ui/code-style | 0.85 | A custom PHP_CodeSniffer standard for ArtisanPack UI projects, with 16+ sniffs enforcing consistent formatting, naming, security, and best practices. Install via Composer, add a phpcs.xml ruleset, and run phpcs to check your code. | 0 | 0 | 0 | 4K | 19 | 23.9 | 62.5 | MIT | 2 months ago | |
| phpcsstandards/php_codesniffer | 0.85 | PHP_CodeSniffer is a PHP library that tokenizes PHP, JavaScript, and CSS files to detect violations of a defined coding standard. It includes phpcs for detecting violations and phpcbf for automatically fixing them, ensuring consistent, clean code across your projects. | 1,567 | 1,564 | 119 | 18K | 174 | 46.7 | 45.6 | BSD-3-Clause | 3 months ago | |
| sunrise/coding-standard | 0.85 | Sunrise PHP Coding Standard provides a ready-to-use PHPCS ruleset (ruleset.xml) you can reference in your project to enforce consistent code style across src and tests, aligned with PSR-1 and PSR-2. | 2 | 2 | 1 | 158 | 1 | 0.5 | 23.9 | MIT | 7 years ago | |
| cakephp/cakephp-codesniffer | 0.85 | CakePHP coding standard for PHP_CodeSniffer. Fully PSR-12 compliant plus additional CakePHP-specific sniffs and fixers. Install via Composer and run phpcs with --standard=CakePHP (or use a phpcs.xml) to check and auto-fix your code. | 232 | 238 | 85 | 269K | 4 | 34.3 | 50.9 | MIT | 2 months ago | |
| webimpress/coding-standard | 0.85 | Opinionated PHP_CodeSniffer rules from Webimpress for consistent PHP style. Extends common standards, adds project conventions, and ships with ready-to-use configs for enforcing formatting and best practices across your codebase. | 15 | 15 | 7 | 84K | 5 | 9.2 | 53.7 | BSD-2-Clause | 2 years ago | |
| iodigital-com/php-code-sniffer-standard | 0.85 | Extends PHP_CodeSniffer with iO Digital coding standards. Install via Composer, add an IO ruleset to your phpcs.xml, configure excluded paths and PHP version ranges, and run vendor/bin/phpcs. Includes guidance for properly ignoring sniff violations. | 1 | 1 | 3 | 600 | 1 | 11.7 | 37.0 | MIT | 9 months ago | |
| dms/coding-standard | 0.85 | 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 | 61 | 0 | 0.9 | 20.7 | — | 3 years ago | |
| camelot/coding-style | 0.85 | Camelot coding style standard for PHP projects, based on PSR-2 and Symfony2. Provides ready-to-use configurations for PHP_CodeSniffer and PHP-CS-Fixer (composer install, sample phpcs.xml.dist and .php_cs.dist, customizable rules). | 0 | 0 | 1 | 0 | 0 | 0.1 | — | MIT | — |
How can I help you explore Laravel packages today?