calebdw/phpstan-laravel
A PHPStan extension for Laravel that teaches static analysis about Laravel’s magic, including facades, helpers, Eloquent models, and container bindings, reducing false positives and surfacing more accurate type errors in Laravel apps.
For executives: This is a low-cost, MIT-licensed quality improvement for Laravel products. It helps catch framework-specific defects before release, makes Laravel and PHP upgrades safer, and reduces engineering time spent on preventable bugs and review churn. The main caveat is maturity: the package has a small community footprint, so we should pilot it, pin the version, and measure defect and review impact before making it a required gate.
For engineering: The package extends PHPStan with Laravel-aware analysis, reducing false positives and improving coverage for framework conventions. Adopt it incrementally through CI, baseline existing errors, and ratchet PHPStan levels over time. Treat it as a build-vs-buy shortcut that avoids maintaining custom stubs and rules, while documenting version compatibility and fallback options in case maintenance slows.
How can I help you explore Laravel packages today?