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

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

rhyslees/enum-traits
====================

This is my package enum-traits

1.0.5(3y ago)0146[2 PRs](https://github.com/RhysLees/enum-traits/pulls)MITPHPPHP ^8.2

Since Oct 5Pushed 2y agoCompare

[ Source](https://github.com/RhysLees/enum-traits)[ Packagist](https://packagist.org/packages/rhyslees/enum-traits)[ Docs](https://github.com/rhyslees/enum-traits)[ RSS](/packages/rhyslees-enum-traits/feed)WikiDiscussions main Synced today

READMEChangelog (6)Dependencies (13)Versions (9)Used By (0)

This is my package enum-traits
==============================

[](#this-is-my-package-enum-traits)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2ef58179c6152ecdc673d9fd207c51a4bd0a610e154068ee26f57c5810a379f5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726879736c6565732f656e756d2d7472616974732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rhyslees/enum-traits)[![GitHub Tests Action Status](https://camo.githubusercontent.com/b1704e74eed99dcb2e6f462d517deaebf6129ce0949e69d21df3e64005b224b7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f726879736c6565732f656e756d2d7472616974732f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/rhyslees/enum-traits/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/e3ff8c25157c27f062e3cc958121ba5b4d089487296436745440a1634ae7d09e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f726879736c6565732f656e756d2d7472616974732f466978253230504850253230636f64652532307374796c652532306973737565733f6c6162656c3d636f64652532307374796c65)](https://github.com/rhyslees/enum-traits/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/99d312ccfc2e377c560c176d114470b069bee86b29dffc3d4638d005b32b4064/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726879736c6565732f656e756d2d7472616974732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rhyslees/enum-traits)

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/3baeca95163da8a545ccfb73740849315525996d58c0ced3187ac8cf5d94eab8/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f656e756d2d7472616974732e6a70673f743d31)](https://spatie.be/github-ad-click/enum-traits)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

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

[](#installation)

You can install the package via composer:

```
composer require rhyslees/enum-traits
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="enum-traits-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="enum-traits-config"
```

This is the contents of the published config file:

```
return [
];
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="enum-traits-views"
```

Usage
-----

[](#usage)

```
$enumTraits = new RhysLees\EnumTraits();
echo $enumTraits->echoPhrase('Hello, RhysLees!');
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Rhys Lees](https://github.com/RhysLees)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 59% 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 ~27 days

Recently: every ~33 days

Total

6

Last Release

1227d ago

PHP version history (2 changes)1.0.0PHP ^8.1

1.0.3PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ec1bfd05f95c19d3d12c7bb0fd2abc097b62e49cc0dfa32d6e6460c76607c95?d=identicon)[RhysLees](/maintainers/RhysLees)

---

Top Contributors

[![RhysLees](https://avatars.githubusercontent.com/u/43909932?v=4)](https://github.com/RhysLees "RhysLees (23 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (9 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (7 commits)")

---

Tags

laravelRhysLeesenum-traits

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

124603.0k](/packages/worksome-exchange)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[tarfin-labs/event-machine

Event-driven state machines for Laravel with event sourcing, type-safe context, and full audit trail.

199.4k](/packages/tarfin-labs-event-machine)[tapp/filament-form-builder

User facing form builder using Filament components

132.4k3](/packages/tapp-filament-form-builder)

PHPackages © 2026

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