Looking to hire Laravel developers? Try LaraJobs

phpstan-laravel maintained by wterberg

Description
Contains several custom rules to analyse Laravel projects with PHPStan.
Last update
2025/10/13 10:34 (dev-main)
License
Links
Downloads
5 373
Tags

Comments
comments powered by Disqus

WterBerg / PHPStan Laravel

github.com/wterberg/phpstan-laravel

Contains several custom rules to analyse Laravel projects with PHPStan.

License

View the LICENSE.md file for licensing details.

Installation

Installation of wterberg/phpstan-laravel is done via Composer.

composer require --dev wterberg/phpstan-laravel

Usage

To 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