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

Phpstan Rules Wrapper Laravel Package

wyrihaximus/phpstan-rules-wrapper

Meta-package that bundles popular PHPStan rule sets and extensions for stricter static analysis. Install via Composer and it works automatically with phpstan/extension-installer, pulling in deprecation, PHPUnit/Mockery, strict rules, dead-code detection, and more.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs Buy: This package eliminates manual configuration of multiple PHPStan extensions, making it a clear "buy" decision. Teams avoid reinventing the wheel for rule setup, reducing internal maintenance overhead.
  • Roadmap Alignment: Supports standardizing code quality across projects by bundling proven rulesets (e.g., strict rules, dead code detection). Future roadmap could include configurable rule toggling or new ruleset integrations based on team feedback.
  • Use Cases: Ideal for organizations scaling code quality enforcement across multiple repositories, especially where consistency and rapid onboarding are priorities. Reduces friction for developers adopting PHPStan by providing a "batteries-included" solution.

When to Consider This Package

  • Adopt when: Your team needs a standardized, zero-configuration setup for multiple PHPStan rules; when maintaining consistent code quality across projects with minimal effort; or when leveraging automatic dependency updates to avoid manual PHPStan version management.
  • Look elsewhere when: You require highly customized rules not included in the bundled set (e.g., niche or proprietary checks); if only one or two specific rules are needed (avoiding unnecessary dependencies); or if your project has strict version constraints incompatible with the wrapper’s pinned dependencies.

How to Pitch It (Stakeholders)

  • Executives: "This package streamlines our code quality process by bundling essential PHPStan rules into a single, easy-to-install solution. It saves engineering time on setup and maintenance, reduces inconsistencies across projects, and ensures we’re using the latest best practices—all at no cost. This is a strategic investment in developer productivity and product reliability."
  • Engineering: "Just run composer require and you’re ready to go—no manual configuration needed. We get all the critical PHPStan rules (strict checks, dead code detection, etc.) pre-configured and automatically updated. This means less time wrestling with tooling and more time building features, with fewer bugs slipping through."
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