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 Laravel Package

ergebnis/phpstan-rules

A set of extra PHPStan rules to enforce stricter, opinionated code standards in PHP projects. Install via Composer and include rules.neon (auto via phpstan/extension-installer) to catch issues like named arguments, class design, and more.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

Architecture fit: This package is a collection of PHPStan rules designed for static code analysis, fitting naturally into PHP development workflows as a dev-time dependency. It extends existing PHPStan configurations without runtime impact, making it ideal for enforcing coding standards during CI/CD or local development. The rules are modular and configurable, aligning with typical PHP project quality gates.

Integration feasibility: Straightforward integration via Composer (composer require --dev). The package auto-includes rules via phpstan/extension-installer or manual phpstan.neon inclusion. Minimal configuration required to enable/disable rules, with clear parameter-based overrides documented in README. No complex setup beyond standard PHPStan usage.

Technical risk: Low-moderate. The package has moderate GitHub stars (441) but zero Packagist dependents, indicating limited real-world adoption. Last release date listed as 2026-01-27 (future-dated) suggests potential metadata error or inactive maintenance. Rules overlap with established packages like phpstan-strict-rules, creating redundancy risk. No PHP version constraints specified in provided docs, requiring validation for compatibility.

Key questions:

  • Why are there zero Packagist dependents despite active GitHub workflows?
  • Is the future-dated release a typo or indication of maintenance issues?
  • How do these rules interact with existing PHPStan rule sets (e.g., strict-rules)?
  • What PHP versions are officially supported?
  • Are there known false positives for specific Laravel patterns (e.g., Eloquent models)?

Integration Approach

Stack fit: Perfect fit for Laravel projects using PHPStan for static analysis. Works seamlessly with Laravel's existing tooling (e.g., laravel-ide-helper), as it operates purely at the static analysis layer. No changes to application code or runtime dependencies required.

Migration path:

  1. Ensure PHPStan is already installed (if not, add phpstan/phpstan first).
  2. Install ergebnis/phpstan-rules via Composer.
  3. Add `includes:
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