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

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

frankbv/enum
============

An enumeration class for PHP

4.0.2(4y ago)11.4k31MITPHPPHP ^7.4|^8.0

Since May 17Pushed 4y ago1 watchersCompare

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

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

Enum
====

[](#enum)

An enumeration class for PHP

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

[](#installation)

```
composer install frankbv/enum
```

License
-------

[](#license)

MIT license, see the [`LICENSE`](LICENSE) file.

(c) 2017-2021 Frank b.v.

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~73 days

Total

14

Last Release

1605d ago

Major Versions

1.4.0 → 2.0.02021-03-04

2.0.1 → 3.0.02021-04-06

3.0.0 → 4.0.02021-09-09

PHP version history (2 changes)1.0.0PHP ^7.0

2.0.0PHP ^7.4|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/0e7366becf8ae796913298f592549f87e13dd8b5a966b0bef9c8c3574e57b1b7?d=identicon)[frankbv](/maintainers/frankbv)

---

Top Contributors

[![gnoddep](https://avatars.githubusercontent.com/u/2128434?v=4)](https://github.com/gnoddep "gnoddep (9 commits)")[![rvanvelzen](https://avatars.githubusercontent.com/u/102603?v=4)](https://github.com/rvanvelzen "rvanvelzen (8 commits)")[![krisbuist](https://avatars.githubusercontent.com/u/1199343?v=4)](https://github.com/krisbuist "krisbuist (4 commits)")

---

Tags

enumlibraryphpphp7

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.4k187.2M2.6k](/packages/composer-composer)[vlucas/phpdotenv

Loads environment variables from `.env` to `getenv()`, `$\_ENV` and `$\_SERVER` automagically.

13.5k602.4M5.4k](/packages/vlucas-phpdotenv)[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k234.7M20.6k](/packages/friendsofphp-php-cs-fixer)[rubix/ml

A high-level machine learning and deep learning library for the PHP language.

2.2k1.4M28](/packages/rubix-ml)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k20](/packages/civicrm-civicrm-core)[jmikola/geojson

GeoJSON implementation for PHP

3109.0M77](/packages/jmikola-geojson)

PHPackages © 2026

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