PHPackages                             nextgen-tech/phpstan-laravel-rules - 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. nextgen-tech/phpstan-laravel-rules

ActiveLibrary[Testing &amp; Quality](/categories/testing)

nextgen-tech/phpstan-laravel-rules
==================================

v1.0.0(5y ago)0215MITPHPPHP ^7.1|^8.0

Since Oct 14Pushed 5y ago1 watchersCompare

[ Source](https://github.com/nextgen-tech/phpstan-laravel-rules)[ Packagist](https://packagist.org/packages/nextgen-tech/phpstan-laravel-rules)[ RSS](/packages/nextgen-tech-phpstan-laravel-rules/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

PHPStan Laravel Rules
=====================

[](#phpstan-laravel-rules)

This package provides collection of PHPStan rules for Laravel applications. For now it provides 2 new rules:

- disallow debug functions (`dd`, `ddd`, `dump`, `debug`, `print_r`, `var_dump` and `var_export`)
- disallow debug methods on Collections (`dd`, `dump` and `debug`)

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

[](#installation)

```
composer require nextgen-tech/phpstan-laravel-rules --dev
```

Including extension to PHPStan
------------------------------

[](#including-extension-to-phpstan)

In `phpstan.neon` or `phpstan.neon.dist` file in `includes` section add:

```
./vendor/nextgen-tech/phpstan-laravel-rules/extension.neon
```

After that file should looks like this:

```
includes:
    - ./vendor/nunomaduro/larastan/extension.neon                # larastan extension, could be omited
    - ./vendor/nextgen-tech/phpstan-laravel-rules/extension.neon # extension from this package

parameters:
    paths:
        - app

    level: 8
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

2079d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/95dd08b3f7f83eedb53d6a13b37a9c2121336d1ae1615e79d5b274e59d32ead8?d=identicon)[Dartui](/maintainers/Dartui)

---

Top Contributors

[![Dartui](https://avatars.githubusercontent.com/u/2657856?v=4)](https://github.com/Dartui "Dartui (1 commits)")

---

Tags

laravelphpphpstan

### Embed Badge

![Health badge](/badges/nextgen-tech-phpstan-laravel-rules/health.svg)

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

###  Alternatives

[larastan/larastan

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

6.4k51.0M7.6k](/packages/larastan-larastan)[phpstan/phpstan-symfony

Symfony Framework extensions and rules for PHPStan

79173.3M2.0k](/packages/phpstan-phpstan-symfony)[phpstan/phpstan-doctrine

Doctrine extensions for PHPStan

67070.7M1.3k](/packages/phpstan-phpstan-doctrine)[shipmonk/dead-code-detector

Dead code detector to find unused PHP code via PHPStan extension. Can automatically remove dead PHP code. Supports libraries like Symfony, Doctrine, PHPUnit etc. Detects dead cycles. Can detect dead code that is tested.

4813.1M82](/packages/shipmonk-dead-code-detector)[spaze/phpstan-disallowed-calls

PHPStan rules to detect disallowed method &amp; function calls, constant, namespace, attribute, property &amp; superglobal usages, with powerful rules to re-allow a call or a usage in places where it should be allowed.

33321.8M508](/packages/spaze-phpstan-disallowed-calls)[mglaman/phpstan-drupal

Drupal extension and rules for PHPStan

20830.6M167](/packages/mglaman-phpstan-drupal)

PHPackages © 2026

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