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. wterberg/phpstan-laravel

ActivePhpstan-extension

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

Contains several custom rules to analyse Laravel projects with PHPStan.

2.2.0(7mo ago)05.2k↓50%11MITPHPPHP ^8.2CI passing

Since Dec 31Pushed 7mo 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 1mo ago

READMEChangelog (8)Dependencies (4)Versions (9)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

45

—

FairBetter than 92% of packages

Maintenance65

Regular maintenance activity

Popularity23

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 90.6% 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 ~197 days

Total

8

Last Release

210d 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)")

---

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.4k43.5M5.2k](/packages/larastan-larastan)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[ssch/typo3-rector

Instant fixes for your TYPO3 PHP code by using Rector.

2592.8M263](/packages/ssch-typo3-rector)[rector/rector-src

Instant Upgrade and Automated Refactoring of any PHP code

134391.5k12](/packages/rector-rector-src)[calebdw/larastan-livewire

A Larastan / PHPStan extension for Livewire.

43482.4k3](/packages/calebdw-larastan-livewire)[laravel/surveyor

Static analysis tool for Laravel applications.

7639.0k7](/packages/laravel-surveyor)

PHPackages © 2026

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