PHPackages                             wterberg/phpstan-laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. wterberg/phpstan-laravel

ActivePhpstan-extension[Testing &amp; Quality](/categories/testing)

wterberg/phpstan-laravel
========================

Contains several custom rules to analyse Laravel projects with PHPStan.

2.3.0(1mo ago)05.7k↑88.1%11MITPHPPHP ^8.2CI passing

Since Dec 31Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/WterBerg/phpstan-laravel)[ Packagist](https://packagist.org/packages/wterberg/phpstan-laravel)[ RSS](/packages/wterberg-phpstan-laravel/feed)WikiDiscussions main Synced yesterday

READMEChangelog (9)Dependencies (8)Versions (11)Used By (1)

WterBerg / PHPStan Laravel
==========================

[](#wterberg--phpstan-laravel)

[github.com/wterberg/phpstan-laravel](https://github.com/wterberg/phpstan-laravel.git)

Contains several custom rules to analyse Laravel projects with PHPStan.

License
-------

[](#license)

View the `LICENSE.md` file for licensing details.

Installation
------------

[](#installation)

Installation of [`wterberg/phpstan-laravel`](https://packagist.org/packages/wterberg/phpstan-laravel) is done via [Composer](https://getcomposer.org).

```
composer require --dev wterberg/phpstan-laravel
```

Usage
-----

[](#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
```

###  Health Score

53

—

FairBetter than 96% of packages

Maintenance93

Actively maintained with recent releases

Popularity23

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 87.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~201 days

Recently: every ~92 days

Total

9

Last Release

36d ago

Major Versions

0.2.0 → 1.0.02023-05-18

1.1.0 → 2.0.02025-05-23

PHP version history (3 changes)0.1.0PHP ^7.4 || ^8.0

1.0.0PHP ^8.0

1.1.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/5c9b231610566fb8c05a224bcd73c1bd37cadf9598f8c8b6ae2415970d46c3ea?d=identicon)[WterBerg](/maintainers/WterBerg)

---

Top Contributors

[![WterBerg](https://avatars.githubusercontent.com/u/1516925?v=4)](https://github.com/WterBerg "WterBerg (29 commits)")[![Nexanewton](https://avatars.githubusercontent.com/u/236781420?v=4)](https://github.com/Nexanewton "Nexanewton (3 commits)")[![kroab](https://avatars.githubusercontent.com/u/47010809?v=4)](https://github.com/kroab "kroab (1 commits)")

---

Tags

composerlaravelphpphpstan

### Embed Badge

![Health badge](/badges/wterberg-phpstan-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/wterberg-phpstan-laravel/health.svg)](https://phpackages.com/packages/wterberg-phpstan-laravel)
```

###  Alternatives

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.5k55.4M8.4k](/packages/larastan-larastan)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[rector/rector-src

Instant Upgrade and Automated Refactoring of any PHP code

136406.3k14](/packages/rector-rector-src)[tomasvotruba/cognitive-complexity

PHPStan rules to measure cognitive complexity of your classes and methods

1635.6M289](/packages/tomasvotruba-cognitive-complexity)[laravel/surveyor

Static analysis tool for Laravel applications.

86121.4k11](/packages/laravel-surveyor)[calebdw/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

15118.7k4](/packages/calebdw-larastan)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
