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

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

rickgoemans/laravel-enum-helpers
================================

A Laravel helper to have nice enum related functions

v5.0.0(1mo ago)0415[2 PRs](https://github.com/rickgoemans/laravel-enum-helpers/pulls)MITPHPPHP ^8.4CI passing

Since Sep 6Pushed 1mo ago1 watchersCompare

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

READMEChangelog (7)Dependencies (26)Versions (11)Used By (0)

[![](https://camo.githubusercontent.com/2bedf63f24cda7efab02da955dc11fb7ef8a060e2f26b73c33a7aac84529b8a3/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f737570706f72742d756b7261696e652e7376673f743d31)](https://supportukrainenow.org)

A Laravel helper to have nice enum related functions
====================================================

[](#a-laravel-helper-to-have-nice-enum-related-functions)

[![Latest Version on Packagist](https://camo.githubusercontent.com/572f63d878617c39bdbc356b219221a42fc03dab1706879728858b0bd183794f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7269636b676f656d616e732f6c61726176656c2d656e756d2d68656c706572732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rickgoemans/laravel-enum-helpers)[![GitHub Tests Action Status](https://camo.githubusercontent.com/ed1026052cdd2028187c3bd297d904fe255be9a0fe8003b477bf0928fb6a3bf5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7269636b676f656d616e732f6c61726176656c2d656e756d2d68656c706572732f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/rickgoemans/laravel-enum-helpers/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/2dfc1885b36c869e46f46fce0e1bd5ae584c24a8acb6fe5f3249068a81d0d830/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7269636b676f656d616e732f6c61726176656c2d656e756d2d68656c706572732f466978253230504850253230636f64652532307374796c652532306973737565733f6c6162656c3d636f64652532307374796c65)](https://github.com/rickgoemans/laravel-enum-helpers/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/4ecefd7102874c5a98892d017fd44a5f029c87c2dd1520fc0b6aff60aabc2e54/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7269636b676f656d616e732f6c61726176656c2d656e756d2d68656c706572732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rickgoemans/laravel-enum-helpers)

This package contains some useful helpers for Laravel and PHP's enums.

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

[](#installation)

You can install the package via composer:

```
composer require rickgoemans/laravel-enum-helpers
```

Usage
-----

[](#usage)

Example enum:

```
