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

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

mleczek/enum
============

Enums in PHP

v1.1.0(5y ago)4373[1 PRs](https://github.com/mleczek/enum/pulls)MITPHP ~7.4 || ~8.0

Since Jul 1Compare

[ Source](https://github.com/mleczek/enum)[ Packagist](https://packagist.org/packages/mleczek/enum)[ Docs](https://github.com/mleczek/enum)[ RSS](/packages/mleczek-enum/feed)WikiDiscussions Synced 4w ago

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

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://github.com/mleczek/enum).

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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 ~152 days

Total

3

Last Release

1834d ago

PHP version history (2 changes)v1.0.0PHP ~7.4

v1.1.0PHP ~7.4 || ~8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/143e31568d2a8cef787b416fd2b5f10b78d28cb141ffe049c197d7fb31dc911c?d=identicon)[mleczek](/maintainers/mleczek)

---

Top Contributors

[![mleczek](https://avatars.githubusercontent.com/u/15350415?v=4)](https://github.com/mleczek "mleczek (9 commits)")

---

Tags

enumsplenum

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[myclabs/php-enum

PHP Enum implementation

2.7k227.9M634](/packages/myclabs-php-enum)[dasprid/enum

PHP 7.1 enum implementation

379146.0M11](/packages/dasprid-enum)[spatie/enum

PHP Enums

84429.1M68](/packages/spatie-enum)[marc-mabe/php-enum

Simple and fast implementation of enumerations with native PHP

49444.8M97](/packages/marc-mabe-php-enum)[spatie/laravel-enum

Laravel Enum support

3655.4M31](/packages/spatie-laravel-enum)[consistence/consistence

Consistence - consistent approach and additions to PHP's functionality

1831.1M18](/packages/consistence-consistence)

PHPackages © 2026

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