PHPackages                             laranail/enumerator - 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. laranail/enumerator

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

laranail/enumerator
===================

The integration-rich Laravel enum toolkit — attributes, state machines, bitmasks, validation, casts, Blade components, and Filament / Livewire / Nova / Inertia integrations. PHP 8.3+, Laravel 13+.

v0.1.0(3mo ago)0352↑30.3%1MITPHPPHP ^8.3CI passing

Since May 13Pushed 1mo agoCompare

[ Source](https://github.com/laranail/enumerator)[ Packagist](https://packagist.org/packages/laranail/enumerator)[ Docs](https://opensource.simtabi.com/products/laranail/enumerator)[ Fund](https://simtabi.com/sponsor)[ GitHub Sponsors](https://github.com/simtabi)[ RSS](/packages/laranail-enumerator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (26)Versions (6)Used By (1)

laranail/enumerator
===================

[](#laranailenumerator)

[![Latest version on Packagist](https://camo.githubusercontent.com/d3f78821246841494aca614e86b3e43634bcadcf421e07526f3ab2eb53f323b0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6172616e61696c2f656e756d657261746f722e737667)](https://packagist.org/packages/laranail/enumerator)[![License: MIT](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)[![PHP 8.3+](https://camo.githubusercontent.com/8cbbb7b41b9b949e4f0b3484da6c0e7c70cadfe51dcc28186345268e358db7e2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545382e332d3838393262662e737667)](https://packagist.org/packages/laranail/enumerator)[![Laravel 13+](https://camo.githubusercontent.com/9458d0e79d16ecd4973b5e354c13c7ac3ea60ac7afb1185485c337fdc296de40/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d25354531332e302d6666326432302e737667)](https://packagist.org/packages/laranail/enumerator)

> The integration-rich Laravel enum toolkit — native enums with declarative attributes, state machines, bitmasks, Blade components, Eloquent casts, validation rules, Filament/Nova/Livewire/Inertia integrations, optional Pest/OpenAPI/GraphQL modules, per-tenant overrides, and Rector migration codemods.

PHP `^8.3` on Laravel `^13`.

Install
-------

[](#install)

```
composer require laranail/enumerator
```

The service provider is auto-discovered. One trait — `use HasEnumerator;` — composes labels, comparisons, bitmasks, grouping, lifecycle, transitions, and factories.

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

[](#documentation)

Full documentation is at **[opensource.simtabi.com/documentation/laranail/enumerator](https://opensource.simtabi.com/documentation/laranail/enumerator/)** — getting started, the attribute metadata system, the consumer-side `HasEnumAttributes` trait, Eloquent, validation, Blade, state machines, bitmasks, translations, per-tenant overrides, database-backed dynamic enums, the optional integration modules, Artisan commands, TypeScript export, and migrating from BenSampo/Spatie enums.

Contributing &amp; security
---------------------------

[](#contributing--security)

Issues and PRs are welcome — see [CONTRIBUTING.md](CONTRIBUTING.md). Report vulnerabilities per [SECURITY.md](SECURITY.md) (); participation follows the [Code of Conduct](CODE_OF_CONDUCT.md).

License
-------

[](#license)

MIT © Simtabi LLC. See [LICENSE](LICENSE).

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance86

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

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

Total

5

Last Release

102d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3108393?v=4)[Simtabi](/maintainers/simtabi)[@simtabi](https://github.com/simtabi)

---

Top Contributors

[![imanimanyara](https://avatars.githubusercontent.com/u/19682005?v=4)](https://github.com/imanimanyara "imanimanyara (1 commits)")

---

Tags

enumslaravelossphplaravelenumenumeratortypescriptlivewireinertiastate-machinefilamentnovabitmaskenumsphp 8.3laravel-13simtabilaranail

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/laranail-enumerator/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k31.8M163](/packages/laravel-cashier)[laravel/ai

The official AI SDK for Laravel.

1.1k4.6M341](/packages/laravel-ai)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9922.4M147](/packages/roots-acorn)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

80427.1M249](/packages/laravel-mcp)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

731189.9k16](/packages/tallstackui-tallstackui)

PHPackages © 2026

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