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

ActiveLibrary

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 1mo 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 49% 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

2034d 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.4k43.5M5.2k](/packages/larastan-larastan)[phpstan/phpstan-symfony

Symfony Framework extensions and rules for PHPStan

78268.9M1.5k](/packages/phpstan-phpstan-symfony)[phpstan/phpstan-doctrine

Doctrine extensions for PHPStan

66466.6M1.0k](/packages/phpstan-phpstan-doctrine)[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.

33120.0M373](/packages/spaze-phpstan-disallowed-calls)[rector/rector-src

Instant Upgrade and Automated Refactoring of any PHP code

134391.5k12](/packages/rector-rector-src)[wp-cli/wp-cli-tests

WP-CLI testing framework

422.7M87](/packages/wp-cli-wp-cli-tests)

PHPackages © 2026

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