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

Abandoned → [grachevko/Enum](/?search=grachevko%2FEnum)Library[Utility &amp; Helpers](/categories/utility)

grachev/enum
============

PHP Enum implementation

2.2(4y ago)5642MITPHP &gt;=7.3

Since Feb 18Compare

[ Source](https://github.com/grachevko/Enum)[ Packagist](https://packagist.org/packages/grachev/enum)[ RSS](/packages/grachev-enum/feed)WikiDiscussions Synced 2mo ago

READMEChangelogDependencies (8)Versions (31)Used By (2)

### README not available

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

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity69

Established project with proven stability

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

Recently: every ~202 days

Total

30

Last Release

1561d ago

Major Versions

v0.14.3 → v1.02019-10-28

v1.4 → v2.0.02019-12-19

PHP version history (3 changes)0.1PHP &gt;=7

0.3PHP &gt;=7.1

v0.14PHP &gt;=7.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8628465?v=4)[Konstantin Grachev](/maintainers/grachevko)[@grachevko](https://github.com/grachevko)

---

Tags

enum

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[myclabs/php-enum

PHP Enum implementation

2.7k227.9M637](/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)
