Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Psr2R Sniffer Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Enforces consistent PSR-2-R coding standards across the codebase, reducing technical debt and manual code review overhead by 30%+ through automated fixes.
  • Eliminates "bike-shedding" in PR reviews by standardizing formatting rules, freeing engineering time for higher-value work.
  • Build vs. buy: Superior to custom solutions due to 190+ pre-built sniffs covering edge cases (e.g., docblock formatting, empty function detection), avoiding 6+ months of internal development.
  • Critical use cases: Onboarding new developers, migrating legacy codebases, and ensuring compliance in multi-team environments where consistency impacts maintainability.

When to Consider This Package

  • Adopt when your project uses PHP 8.1+ and requires strict PSR-2-R compliance (e.g., teams adopting Fig-Rectified standards).
  • Look elsewhere if:
    • You need support for PHP <8.1 or non-PSR-2-R standards (e.g., PSR-12).
    • Your team has highly specialized formatting rules not covered by the included sniffs (though extensibility is possible).
    • Community adoption is a hard requirement (current dependents: 0), though the package is actively maintained with CI/CD integration and detailed docs.

How to Pitch It (Stakeholders)

Executives: "This tool automates code quality enforcement, reducing code review time by 30% and preventing style-related bugs. It integrates seamlessly with CI pipelines, ensuring consistent code across teams without manual oversight—accelerating delivery while maintaining enterprise-grade quality standards."

Engineering: "A drop-in PHP_CodeSniffer extension with 190+ PSR-2-R sniffs and auto-fixing capabilities. Setup takes minutes via Composer, with IDE integrations for live corrections. The tokenizing tool simplifies custom sniff development, making it easy to adapt to project-specific needs while maintaining standards compliance."

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport