PHPackages                             returnearly/laravel-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. returnearly/laravel-enums

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

returnearly/laravel-enums
=========================

A helper package for PHP 8.1+ enums for Laravel.

v2.1.0(1y ago)549.1k↓77.1%[3 PRs](https://github.com/returnearly/laravel-enums/pulls)1MITPHPPHP ^8.2CI passing

Since Jan 29Pushed 1y ago1 watchersCompare

[ Source](https://github.com/returnearly/laravel-enums)[ Packagist](https://packagist.org/packages/returnearly/laravel-enums)[ Docs](https://github.com/returnearly/laravel-enums)[ RSS](/packages/returnearly-laravel-enums/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (5)Dependencies (6)Versions (9)Used By (1)

A helper package for PHP 8.1+ enums for Laravel.
================================================

[](#a-helper-package-for-php-81-enums-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/40f6e576a5a926c393ff30d59e2a2ea11b25d2f4a58b3e43837e8cb83f4b21c5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72657475726e6561726c792f6c61726176656c2d656e756d732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/returnearly/laravel-enums)[![GitHub Tests Action Status](https://camo.githubusercontent.com/a05efa1e79c145d07f8c47f70a5f8aca88a2c25d784ad963e8c872b1d20ee49c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f72657475726e6561726c792f6c61726176656c2d656e756d732f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/returnearly/laravel-enums/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/55c0235fbdf4df32db8266cd494f8dc5573112089ef936c09cd89f81058a1ee1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f72657475726e6561726c792f6c61726176656c2d656e756d732f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/returnearly/laravel-enums/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/85b6ec97d1c0b899bb7e45cc7dc6812c80a3bc3ec568ea6504a04ab4104cfa16/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f72657475726e6561726c792f6c61726176656c2d656e756d732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/returnearly/laravel-enums)

A package to generate PHP 8.1 Enums, and adds Laravel Collection helpers around them.

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

[](#installation)

You can install the package via composer:

```
composer require returnearly/laravel-enums
```

Usage
-----

[](#usage)

```
php artisan make:enum UserTypeEnum --int --test
```

```
php artisan make:enum UserStatusEnum --string --test
```

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)

- [Tom Schlick](https://github.com/tomschlick)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance45

Moderate activity, may be stable

Popularity34

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 85.7% 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 ~206 days

Total

5

Last Release

426d ago

Major Versions

v0.1.0 → v1.0.02023-01-30

v1.0.1 → v2.0.02024-09-06

PHP version history (2 changes)v0.1.0PHP ^8.1

v2.0.0PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/70184?v=4)[Tom Schlick](/maintainers/tomschlick)[@tomschlick](https://github.com/tomschlick)

---

Top Contributors

[![tomschlick](https://avatars.githubusercontent.com/u/70184?v=4)](https://github.com/tomschlick "tomschlick (18 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

enumslaravelphplaravelreturnearlylaravel-enums

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

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

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

###  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)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

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

Check Exchange Rates for any currency in Laravel.

124603.0k](/packages/worksome-exchange)[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)

PHPackages © 2026

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