PHPackages                             cline/enums - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. cline/enums

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

cline/enums
===========

A collection of enum helpers for PHP that enhance native PHP enums with powerful features and utilities.

2.0.2(2mo ago)02.2k↓18.3%MITPHPPHP ^8.5.0CI passing

Since Mar 4Pushed 2mo agoCompare

[ Source](https://github.com/faustbrian/enums)[ Packagist](https://packagist.org/packages/cline/enums)[ RSS](/packages/cline-enums/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelog (1)Dependencies (14)Versions (7)Used By (0)

[![GitHub Workflow Status](https://github.com/faustbrian/enums/actions/workflows/quality-assurance.yaml/badge.svg)](https://github.com/faustbrian/enums/actions)[![Latest Version on Packagist](https://camo.githubusercontent.com/f8e69596f7a5057f4729cdd66d3d78674735aa449e3295b0f67c91cf0be0fd6e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636c696e652f656e756d732e737667)](https://packagist.org/packages/cline/enums)[![Software License](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/4df30f23daa15c83bf2d9cf9ff7070a65553f912f4ef071e9abc4bad0a0af491/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636c696e652f656e756d732e737667)](https://packagist.org/packages/cline/enums)

---

A collection of enum helpers for PHP that enhance native PHP enums with powerful features and utilities.

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

[](#requirements)

> **Requires [PHP 8.4+](https://php.net/releases/)**

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

[](#installation)

```
composer require cline/enums
```

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

[](#documentation)

- **[Getting Started](DOCS.md#doc-docs-readme)** - Installation and basic usage
- **[Quick Reference](DOCS.md#doc-docs-quick-reference)** - Overview of all features with examples
- **[InvokableCases](DOCS.md#doc-docs-invokable-cases)** - Get enum values without -&gt;value
- **[Collections](DOCS.md#doc-docs-collections)** - Names, values, and options methods
- **[Instantiation](DOCS.md#doc-docs-instantiation)** - Enhanced from() and fromName() methods
- **[Metadata](DOCS.md#doc-docs-metadata)** - Add custom properties to enum cases
- **[Comparable](DOCS.md#doc-docs-comparable)** - Compare enum instances with is(), in()

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please use the [GitHub security reporting form](https://github.com/faustbrian/enums/security) rather than the issue queue.

Credits
-------

[](#credits)

- [Brian Faust](https://github.com/faustbrian)
- [ARCHTECH](https://github.com/archtechx/enums)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License. Please see [License File](LICENSE.md) for more information.

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance88

Actively maintained with recent releases

Popularity21

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity56

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

Recently: every ~26 days

Total

6

Last Release

61d ago

Major Versions

1.0.1 → 2.0.02026-03-04

PHP version history (2 changes)1.0.0PHP ^8.4.0

1.0.1PHP ^8.5.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22145591?v=4)[Brian Faust](/maintainers/faustbrian)[@faustbrian](https://github.com/faustbrian)

---

Top Contributors

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

---

Tags

phplaravelvalidationenumserializationenumerationtype-safeenumsbacked-enum

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/cline-enums/health.svg)

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

###  Alternatives

[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[yorcreative/laravel-argonaut-dto

Argonaut is a lightweight Data Transfer Object (DTO) package for Laravel that supports nested casting, recursive serialization, and validation out of the box. Ideal for service layers, APIs, and clean architecture workflows.

1062.8k1](/packages/yorcreative-laravel-argonaut-dto)[reducktion/socrates

A package to validate, and extract citizen information from, national identification numbers.

488.5k](/packages/reducktion-socrates)[fab2s/dt0

Immutable DTOs with bidirectional casting. No framework required. 8x faster than the alternative.

101.6k1](/packages/fab2s-dt0)

PHPackages © 2026

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