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.
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope