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.
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:
strict-rules)?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:
phpstan/phpstan first).ergebnis/phpstan-rules via Composer.How can I help you explore Laravel packages today?