PHPackages                             jdecool/enum-phpstan - 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. jdecool/enum-phpstan

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

jdecool/enum-phpstan
====================

PHPStan extension for jdecool/enum

1.0.0(5y ago)012MITPHPPHP ^8.0

Since Dec 9Pushed 4y ago1 watchersCompare

[ Source](https://github.com/jdecool/enum-phpstan)[ Packagist](https://packagist.org/packages/jdecool/enum-phpstan)[ RSS](/packages/jdecool-enum-phpstan/feed)WikiDiscussions main Synced 6d ago

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

PHPStan extension for `jdecool/enum`
====================================

[](#phpstan-extension-for-jdecoolenum)

[![Build Status](https://github.com/jdecool/enum-phpstan/workflows/CI/badge.svg)](https://github.com/jdecool/enum-phpstan/actions?query=workflow%3ACI)[![Latest Stable Version](https://camo.githubusercontent.com/4f5c952cef0481ac413f1ecadbd7b471101a704684f8a05cbeada20defc58cd9/68747470733a2f2f706f7365722e707567782e6f72672f6a6465636f6f6c2f656e756d2d7068707374616e2f762f737461626c652e706e67)](https://packagist.org/packages/jdecool/enum-phpstan)

This extension defines dynamic methods for `JDecool\Enum\Enum` subclasses.

Deprecated
----------

[](#deprecated)

⚠️ This project is no longer actively maintained.

Native enum arrived to PHP in version 8.1: If your project is running PHP 8.1+ or your library has it as a minimum requirement you should use it instead of this library.

Usage
-----

[](#usage)

To use this extension, require it with [Composer](https://getcomposer.org).

```
composer require --dev jdecool/enum-phpstan
```

And include `extension.neon` in your project's PHPStan config

```
includes:
  - vendor/jdecool/enum-phpstan/extension.neon
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

1985d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a648f4457ad94c2fc48782bded875f3bf051b480fd2fe01eb7654b9fab180e5e?d=identicon)[jdecool](/maintainers/jdecool)

---

Top Contributors

[![jdecool](https://avatars.githubusercontent.com/u/433926?v=4)](https://github.com/jdecool "jdecool (6 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/jdecool-enum-phpstan/health.svg)

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

###  Alternatives

[ticketswap/phpstan-error-formatter

A minimalistic error formatter for PHPStan

87578.8k35](/packages/ticketswap-phpstan-error-formatter)[ramsey/devtools

A Composer plugin to aid PHP library and application development.

7134.7k26](/packages/ramsey-devtools)[johnbillion/wp-compat

PHPStan extension to help verify that your PHP code is compatible with a given version of WordPress

24115.0k10](/packages/johnbillion-wp-compat)

PHPackages © 2026

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