PHPackages                             ariantron/base-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. ariantron/base-enum

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

ariantron/base-enum
===================

A superclass for Enum class creation with more functionalities

1.1.2(2y ago)035MITPHP

Since Dec 11Pushed 2y ago1 watchersCompare

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

READMEChangelog (4)DependenciesVersions (5)Used By (0)

Base Enum
=========

[](#base-enum)

The **Base Enum** Composer package provides a versatile superclass for creating Enum classes in PHP with enhanced functionalities. Enums are a powerful way to represent a fixed set of named values in your code, and this package simplifies their implementation and usage.

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

[](#installation)

To install the Base Enum package, use the following Composer command:

```
composer require ariantron/base-enum
```

Usage
-----

[](#usage)

### Creating Enum Classes

[](#creating-enum-classes)

To create an Enum class using the Base Enum package, extend the `BaseEnum` class and define your constants within the class. Here's an example:

```
