PHPackages                             artisaninweb/laravel-enum - 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. artisaninweb/laravel-enum

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

artisaninweb/laravel-enum
=========================

A provider for Enums in Laravel.

1.0.1(10y ago)1187.5k↓43.9%1[3 issues](https://github.com/artisaninweb/laravel-enum/issues)MITPHPPHP &gt;=5.5.0

Since Jun 11Pushed 3y ago1 watchersCompare

[ Source](https://github.com/artisaninweb/laravel-enum)[ Packagist](https://packagist.org/packages/artisaninweb/laravel-enum)[ RSS](/packages/artisaninweb-laravel-enum/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

Laravel Enum
============

[](#laravel-enum)

This package is a Laravel provider for "gerritdrost/phenum".
Credits for making Enum work in PHP go to: G. Drost.
More documentation is found here: .

Installation
============

[](#installation)

Add `artisaninweb/laravel-enum` as requirement to composer.json

```
{
    "require": {
        "artisaninweb/laravel-enum": "1.0.*"
    }
}
```

Add the service provider in `config/app.php`.

```
'Artisaninweb\Enum\EnumServiceProvider'
```

To use the `EnumMap` facade add this to the facades in `config/app.php`.

```
'EnumMap' => 'Artisaninweb\Enum\Facades\EnumFacade'
```

Add a new folder with the name `Enums` to the directory `app/`.

Generating enum
===============

[](#generating-enum)

A command to make new enum's.

```
php artisan make:enum Fruit
```

License
=======

[](#license)

The MIT License (MIT)

Copyright (c) 2014 Michael van de Rijt

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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

3994d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/044816312f6d55ddca317d2c0a31c31e1572f3756523d1e37bc5f5983249d310?d=identicon)[artisaninweb](/maintainers/artisaninweb)

---

Top Contributors

[![knshr](https://avatars.githubusercontent.com/u/47077944?v=4)](https://github.com/knshr "knshr (1 commits)")[![notfalsedev](https://avatars.githubusercontent.com/u/6005094?v=4)](https://github.com/notfalsedev "notfalsedev (1 commits)")

---

Tags

laravelenum

### Embed Badge

![Health badge](/badges/artisaninweb-laravel-enum/health.svg)

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

###  Alternatives

[simplesquid/nova-enum-field

A Laravel Nova field to add enums to resources.

52391.9k2](/packages/simplesquid-nova-enum-field)[nasyrov/laravel-enums

Laravel package for Enum implementation.

3272.5k](/packages/nasyrov-laravel-enums)[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)[mindtwo/native-enum

Package for using native php enums.

2626.0k1](/packages/mindtwo-native-enum)[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)

PHPackages © 2026

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