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

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

gpolverini/enum
===============

Abstract Enum library for PHP

v0.1.0(7y ago)01581MITPHPPHP &gt;=5.6.0

Since Sep 5Pushed 7y agoCompare

[ Source](https://github.com/gpolverini/enum)[ Packagist](https://packagist.org/packages/gpolverini/enum)[ RSS](/packages/gpolverini-enum/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (3)Versions (3)Used By (1)

[![Version 0.1.0](https://camo.githubusercontent.com/c0b35941a01f1cb0cad15604dd30b44ae29f70f9a1ba20b7dd99caa169c40bd4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d76302e312e302d677265656e2e737667)](https://camo.githubusercontent.com/c0b35941a01f1cb0cad15604dd30b44ae29f70f9a1ba20b7dd99caa169c40bd4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d76302e312e302d677265656e2e737667)[![Build Status](https://camo.githubusercontent.com/24c89c69ecc946a9cae2d748293d6f104b014ca1da7b3c9e939ade79fd1d7e1c/68747470733a2f2f7472617669732d63692e6f72672f67706f6c766572696e692f656e756d2e7376673f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/24c89c69ecc946a9cae2d748293d6f104b014ca1da7b3c9e939ade79fd1d7e1c/68747470733a2f2f7472617669732d63692e6f72672f67706f6c766572696e692f656e756d2e7376673f6272616e63683d6d6173746572) [![Coverage Status](https://camo.githubusercontent.com/ffed5f84723b7cacad87d68fef4501c9fd47c4814962cd6931f32d7dc30fca05/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f67706f6c766572696e692f656e756d2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/gpolverini/enum?branch=master)[![MIT licensed](https://camo.githubusercontent.com/dc23a8ab96b98105d190dbd9d2330622e0191ed7b2623c4973ac843aa180fe49/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f67706f6c766572696e692f656e756d2e737667)](LICENSE.md)

Abstract Enum
=============

[](#abstract-enum)

This is a native PHP implementation to add enumeration support to PHP &gt;= 5.6. It's an abstract class that needs to be extended to use it.

Contributing
------------

[](#contributing)

Contributions, issues, pull requests are welcome. See [CONTRIBUTING.md](CONTRIBUTING.md)

License
-------

[](#license)

This component is [MIT licensed](LICENSE.md).

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

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

2

Last Release

2808d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/05c3467e4afa90bce02e44880894a89d8bcb3c58a80eda9330bc92670100b68d?d=identicon)[gpolverini](/maintainers/gpolverini)

---

Top Contributors

[![gpolverini](https://avatars.githubusercontent.com/u/40297299?v=4)](https://github.com/gpolverini "gpolverini (1 commits)")

---

Tags

enum

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/gpolverini-enum/health.svg)](https://phpackages.com/packages/gpolverini-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)
