PHPackages                             rquadling/enumeration - 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. rquadling/enumeration

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

rquadling/enumeration
=====================

Extension to Eloquent/Enumeration for use within RQuadling's projects.

v2.0.0(5y ago)013[1 PRs](https://github.com/rquadling/enumeration/pulls)PHPPHP ^7.4

Since Dec 30Pushed 1y ago1 watchersCompare

[ Source](https://github.com/rquadling/enumeration)[ Packagist](https://packagist.org/packages/rquadling/enumeration)[ RSS](/packages/rquadling-enumeration/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (6)Versions (4)Used By (0)

RQuadling/Enumeration
=====================

[](#rquadlingenumeration)

[![Build Status](https://camo.githubusercontent.com/34a28350d0da49e22c5a81a5a595f92d030f7a41916477601c62b53e5b02028f/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f72717561646c696e672f656e756d65726174696f6e2e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d747261766973)](https://travis-ci.org/rquadling/enumeration)[![Code Coverage](https://camo.githubusercontent.com/30fe1802e2ce6971a543c641d6888e25dc3bf0d832bc20b9466cc0707cef080e/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f72717561646c696e672f656e756d65726174696f6e2e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d7363727574696e697a6572)](https://scrutinizer-ci.com/g/rquadling/enumeration/)[![GitHub issues](https://camo.githubusercontent.com/02ff3720b601139a693b1adf2fc7c3f9d551d7410715696f3e43dd3ac1b59be4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f72717561646c696e672f656e756d65726174696f6e2e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d676974687562)](https://github.com/rquadling/enumeration/issues)

[![PHP Version](https://camo.githubusercontent.com/2783e961dc64d24f69ec17bddbe6bd9461a49f639ceac7cf9beb77a45d3cbe8a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f72717561646c696e672f656e756d65726174696f6e2e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/rquadling/enumeration)[![Stable Version](https://camo.githubusercontent.com/ad4f152a54811e8f522ae4da7e94895c99e90e33735768167b128bc020cde3bd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72717561646c696e672f656e756d65726174696f6e2e7376673f7374796c653d666f722d7468652d6261646765266c6162656c3d4c6174657374)](https://packagist.org/packages/rquadling/enumeration)

[![Total Downloads](https://camo.githubusercontent.com/3be8ce4b6050db3de79dcc2fdda3401a8dec500d83452855c078553d2e7981a0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f72717561646c696e672f656e756d65726174696f6e2e7376673f7374796c653d666f722d7468652d6261646765266c6162656c3d546f74616c2b646f776e6c6f616473)](https://packagist.org/packages/rquadling/enumeration)[![Monthly Downloads](https://camo.githubusercontent.com/83b5b4ebf134223ca1f6a73543dd0ee487066812a39b5c5b64deaed0b67e0e27/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f72717561646c696e672f656e756d65726174696f6e2e7376673f7374796c653d666f722d7468652d6261646765266c6162656c3d4d6f6e74686c792b646f776e6c6f616473)](https://packagist.org/packages/rquadling/enumeration)[![Daily Downloads](https://camo.githubusercontent.com/1f82952f68fbb1ca07be1069772e6df3640ffd48897d9e9417cdc0ae2ec25ea8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64642f72717561646c696e672f656e756d65726174696f6e2e7376673f7374796c653d666f722d7468652d6261646765266c6162656c3d4461696c792b646f776e6c6f616473)](https://packagist.org/packages/rquadling/enumeration)

Extension to Eloquent/Enumeration for use within RQuadling's projects.

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

[](#installation)

Using Composer:

```
composer require rquadling/enumeration
```

PHPStan rules
-------------

[](#phpstan-rules)

A [PHPStan](https://github.com/phpstan/phpstan) rule governing the enumeration class is available.

The rules are:

1. Attempting to extend `\Eloquent\Enumeration\AbstractEnumeration` rather than `\RQuadling\Enumeration\AbstractEnumeration`.
2. Multiple names exist for the the values in the enumeration.
3. Missing `@method static` docblocks.

If you also install [phpstan/extension-installer](https://github.com/phpstan/extension-installer) then you're all set!

### Manual installation

[](#manual-installation)

If you don't want to use `phpstan/extension-installer`, include `rules.neon` in your project's PHPStan config:

```
includes:
    - vendor/rquadling/enumeration/rules.neon

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Total

2

Last Release

2141d ago

Major Versions

v1.0.0 → v2.0.02020-06-28

PHP version history (2 changes)v1.0.0PHP ^7

v2.0.0PHP ^7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/4c385f24d4f13c86b9c3e54c61b2532189c1ffb3099a8e63738fd75de90b20ba?d=identicon)[RQuadling](/maintainers/RQuadling)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/rquadling-enumeration/health.svg)

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

###  Alternatives

[icecave/duct

An incremental streaming JSON parser.

773.5k1](/packages/icecave-duct)[xmolecules/phpmolecules

Libraries to help developers express architectural abstractions in PHP code

3310.0k1](/packages/xmolecules-phpmolecules)[kuvvu/envexample

Create an update env.example with artisan

112.0k1](/packages/kuvvu-envexample)

PHPackages © 2026

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