PHPackages                             dvlpr1996/php-enum-helper-trait - 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. dvlpr1996/php-enum-helper-trait

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

dvlpr1996/php-enum-helper-trait
===============================

Simplify enum handling in PHP with this versatile trait. Enhance code clarity and streamline workflows with utility methods for enum management.

v0.2.0(2y ago)00MITPHPPHP ^8.1

Since Apr 24Pushed 2y ago1 watchersCompare

[ Source](https://github.com/dvlpr1996/php-enum-helper-trait)[ Packagist](https://packagist.org/packages/dvlpr1996/php-enum-helper-trait)[ Docs](https://github.com/dvlpr1996/php-enum-helper-trait)[ RSS](/packages/dvlpr1996-php-enum-helper-trait/feed)WikiDiscussions main Synced 1mo ago

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

Php Enum Helper Trait
=====================

[](#php-enum-helper-trait)

[![License: MIT](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](https://opensource.org/licenses/MIT)[![Latest Version on Packagist](https://camo.githubusercontent.com/cd8d9f18b2fd940cfc4dcbe68face4c004a77c417474bb52c42191c06661f273/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64766c7072313939362f7068702d656e756d2d68656c7065722d74726169743f7374796c653d666c6174)](https://packagist.org/packages/dvlpr1996/php-enum-helper-trait)[![Total Downloads](https://camo.githubusercontent.com/cea2a60f7b73bed2cb2dfdb68afa0d24a870cee48d46412cebe2c3053882a381/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64766c7072313939362f7068702d656e756d2d68656c7065722d7472616974)](https://packagist.org/packages/dvlpr1996/php-enum-helper-trait)

This package provides a trait designed to simplify and enhance the functionality of enums in PHP applications. It offers utility methods and features that make working with enums more intuitive and efficient, ideal for developers looking to streamline their enum handling in PHP applications.

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

[](#requirements)

- PHP 8.1 or higher

Install
-------

[](#install)

You can install the package via composer:

```
composer require dvlpr1996/php-enum-helper-trait
```

Usage
-----

[](#usage)

```
use dvlpr1996\PhpEnumHelperTrait\EnumHelperTrait;

enum Foo: string {
	use EnumHelperTrait;

	// Your Additional Cases, Methods And Properties...
}
```

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

[](#documentation)

See the [documentation](https://github.com/dvlpr1996/php-enum-helper-trait/wiki) for detailed installation and usage instructions.

Changelog
---------

[](#changelog)

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

issues
------

[](#issues)

If you discover any issues, please using the issue tracker.

Credits
-------

[](#credits)

- [Nima jahan bakhshian](https://github.com/dvlpr1996)

License
-------

[](#license)

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

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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

753d ago

### Community

Maintainers

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

---

Top Contributors

[![dvlpr1996](https://avatars.githubusercontent.com/u/93678876?v=4)](https://github.com/dvlpr1996 "dvlpr1996 (15 commits)")

---

Tags

enumenum-helperenum-helper-traitenumerationphpphp-enumphp-enum-helper-traitphp-trait-helperphp-traitsphp8phphelperenumutilitytraitphp-enumenumsphp-utilityenum-traitenum-helperphp-traitphp-enum-helperphp-enum-utility

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dvlpr1996-php-enum-helper-trait/health.svg)

```
[![Health](https://phpackages.com/badges/dvlpr1996-php-enum-helper-trait/health.svg)](https://phpackages.com/packages/dvlpr1996-php-enum-helper-trait)
```

###  Alternatives

[iteks/laravel-enum

A comprehensive Laravel package providing enhanced enum functionalities, including attribute handling, select array conversions, and fluent facade interactions for robust enum management in Laravel applications.

2516.7k](/packages/iteks-laravel-enum)[lazerg/laravel-enum-pro

A powerful PHP enum extension with collection support, random selection, and magic static calls

4319.0k](/packages/lazerg-laravel-enum-pro)[markbaker/enumhelper

A small library that provides Helper Traits for PHP 8.1 Enums

2819.4k1](/packages/markbaker-enumhelper)[fuwasegu/php-enum-util

The extension library for PHP native enum.

119.1k](/packages/fuwasegu-php-enum-util)

PHPackages © 2026

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