github.com/wterberg/phpstan-laravel
Contains several custom rules to analyse Laravel projects with PHPStan.
View the LICENSE.md file for licensing details.
Installation of wterberg/phpstan-laravel is done via Composer.
composer require --dev wterberg/phpstan-laravelTo start using the custom PHPStan rules, simply include the below snippet in the phpstan.neon or phpstan.neon.dist file of your project.
includes:
- ./vendor/wterberg/phpstan-laravel/extension.neon