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

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

mesour/enum
===========

Mesour enum.

v0.0.1(6y ago)02MITPHPPHP &gt;=7.1.0

Since Oct 11Pushed 6y ago1 watchersCompare

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

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

mesour/enum
===========

[](#mesourenum)

The main advantages of using enums for representing set of values are:

- you can be sure, that the value is unchanged (not only validated once)
- you can use type hints to check that only the defined set of values is acceptable
- you can define behavior on top of the represented values
- you can define properties for enum values

Requirements
------------

[](#requirements)

Library mesour/enum requires PHP 7.1 or higher.

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

[](#installation)

The best way to install mesour/enum is using [Composer](http://getcomposer.org/).

- Run command `composer require mesour/enum`.

Documentation
-------------

[](#documentation)

Learn more in the [documentation](https://github.com/mesour/enum/blob/master/docs/en/index.md).

How to run tests
----------------

[](#how-to-run-tests)

- Run command `vendor/bin/tester -c tests/php.ini tests`.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

2408d ago

### Community

Maintainers

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

---

Top Contributors

[![mesour](https://avatars.githubusercontent.com/u/1161897?v=4)](https://github.com/mesour "mesour (3 commits)")

---

Tags

enum

### Embed Badge

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

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