PHPackages                             imrelaur/power-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. imrelaur/power-enum

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

imrelaur/power-enum
===================

Laravel Power Enum

v0.3.0(9mo ago)0704↓50%MITPHPPHP ^8.2

Since May 1Pushed 2mo ago1 watchersCompare

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

READMEChangelog (6)Dependencies (4)Versions (7)Used By (0)

Laravel Power Enum
==================

[](#laravel-power-enum)

Laravel Power Enum is a package that provides a powerful and flexible way to work with PHP enums in Laravel applications. It extends the functionality of PHP enums by adding useful methods and features, making it easier to manage and manipulate enum values.

Works with [Laravel](https://laravel.com/) and [Filament PHP](https://filamentphp.com/).

[![Latest Stable Version](https://camo.githubusercontent.com/9f69d76a5c25c63ed83552fbd37646577372e6ddbfc17fe1c2634a18a1273b5f/68747470733a2f2f706f7365722e707567782e6f72672f696d72656c6175722f706f7765722d656e756d2f762f737461626c65)](https://packagist.org/packages/imrelaur/power-enum)[![License](https://camo.githubusercontent.com/9ec0e3fd481a74673160790db9724b165db3d2cea5345fc7e54b7c252db70d71/68747470733a2f2f706f7365722e707567782e6f72672f696d72656c6175722f706f7765722d656e756d2f6c6963656e7365)](https://packagist.org/packages/imrelaur/power-enum)[![PHP Version](https://camo.githubusercontent.com/94c203a54f4fe3bf46d5ac71385d941568c6728ddd5637c8c9466fcaf6165e1e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344253230382e322d3446354239332e737667)](https://www.php.net/)[![Laravel Version](https://camo.githubusercontent.com/ce8554b968d4d1f9d4b20c60394e1197a09fdcda8dbaccf4a47bf06b87d104c1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d25334525334425323031302e302d4646324432302e737667)](https://laravel.com/)

Table of Contents
=================

[](#table-of-contents)

- [Install](#install)
- [Usage](#usage)
    - [Power Enum in Laravel](#power-enum-in-laravel)
    - [Power Enum in Filament](#power-enum-in-filament)
- [Methods](#methods)
    - [fromName](#fromname)
    - [tryFromName](#tryfromname)
    - [fromRequest](#fromrequest)
    - [rule](#rule)
    - [count](#count)
    - [collect](#collect)
    - [names](#names)
    - [values](#values)
    - [options](#options)
    - [mapped](#mapped)
    - [only](#only)
    - [except](#except)
    - [is](#is)
    - [isNot](#isnot)
    - [isAny](#isany)
    - [isNotAny](#isnotany)
    - [toLower](#tolower)
    - [toUpper](#toupper)
- [Testing](#testing)

Install
-------

[](#install)

```
composer require imrelaur/power-enum

```

Usage
-----

[](#usage)

### Power Enum in Laravel

[](#power-enum-in-laravel)

```
