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.
calebdw/phpstan-laravel is a development-time PHPStan extension for Laravel applications and packages. It fits as a CI/quality-gate component rather than a runtime dependency, so architectural coupling is low. Its value is highest where Laravel’s dynamic container, facades, Eloquent, and package conventions cause PHPStan to miss or misread behavior.composer.json; test against the supported Laravel/PHP matrix. For packages, use Testbench or an equivalent harness. Validate CI behavior with missing .env, app keys, database access, and container bootstrapping.How can I help you explore Laravel packages today?