PHPackages                             marek-d-lis/phpstan-symfony-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. marek-d-lis/phpstan-symfony-rules

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

marek-d-lis/phpstan-symfony-rules
=================================

My PHPStan rules for Symfony i like to include in my projects

1.0.2(1y ago)0115MITPHP

Since Jan 29Pushed 1y ago1 watchersCompare

[ Source](https://github.com/marek-d-lis/phpstan-symfony-rules)[ Packagist](https://packagist.org/packages/marek-d-lis/phpstan-symfony-rules)[ RSS](/packages/marek-d-lis-phpstan-symfony-rules/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (1)Versions (4)Used By (0)

PHPStan Symfony Rules
=====================

[](#phpstan-symfony-rules)

Description
-----------

[](#description)

This package provides custom PHPStan rules for Symfony projects to enforce better coding practices by preventing the use of debugging and execution-halting functions such as:

- `var_dump()`
- `dump()`
- `dd()`
- `die()`
- `exit()`

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

[](#installation)

Require the package via Composer:

```
composer require --dev marek-d-lis/phpstan-symfony-rules
```

Configuration
-------------

[](#configuration)

Include the package's rules in your `phpstan.neon` configuration file:

```
includes:
  - vendor/marek-d-lis/phpstan-symfony-rules/extension.neon
```

Rules
-----

[](#rules)

### 1. NoDumpRule

[](#1-nodumprule)

- Prevents the use of `var_dump()` and `dump()`.
- Example violation: ```
    var_dump($data); // ❌ Not allowed
    dump($data); // ❌ Not allowed
    ```

### 2. NoDieRule

[](#2-nodierule)

- Prevents the use of `die()`, `exit()`, and `dd()`.
- Example violation: ```
    die("Fatal error"); // ❌ Not allowed
    exit(1); // ❌ Not allowed
    dd($data); // ❌ Not allowed
    ```

License
-------

[](#license)

This project is licensed under the MIT License. See the `LICENSE` file for details.

Author
------

[](#author)

Marek D. Lis - [Website](https://marekdlis.pl)

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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

Every ~0 days

Total

3

Last Release

520d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/194721067?v=4)[Marek D. Lis](/maintainers/marek-d-lis)[@marek-d-lis](https://github.com/marek-d-lis)

---

Top Contributors

[![marek-d-lis](https://avatars.githubusercontent.com/u/194721067?v=4)](https://github.com/marek-d-lis "marek-d-lis (4 commits)")

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/marek-d-lis-phpstan-symfony-rules/health.svg)

```
[![Health](https://phpackages.com/badges/marek-d-lis-phpstan-symfony-rules/health.svg)](https://phpackages.com/packages/marek-d-lis-phpstan-symfony-rules)
```

PHPackages © 2026

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