PHPackages                             nilay-jp/php-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. nilay-jp/php-enum

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

nilay-jp/php-enum
=================

Enum implementation for PHP.

v2.0.0(5y ago)0798MITPHPPHP ^8.0CI failing

Since May 26Pushed 5y ago1 watchersCompare

[ Source](https://github.com/nilay-jp/php-enum)[ Packagist](https://packagist.org/packages/nilay-jp/php-enum)[ Docs](https://about.nilay.jp)[ RSS](/packages/nilay-jp-php-enum/feed)WikiDiscussions 2.x Synced 4d ago

READMEChangelogDependencies (3)Versions (6)Used By (0)

php-enum
========

[](#php-enum)

[![](https://camo.githubusercontent.com/5e75e4bfb3225395467bd858e14fd1d6c60d10945519ae1ff85962a734554b4d/68747470733a2f2f636972636c6563692e636f6d2f67682f6e696c61792d6a702f7068702d656e756d2e7376673f7374796c653d736869656c64)](https://circleci.com/gh/nilay-jp/php-enum)[![](https://github.com/nilay-jp/php-enum/workflows/test/badge.svg?branch=2.x)](https://github.com/nilay-jp/php-enum/actions)

Enum implementation for PHP.

Example
-------

[](#example)

Simple example.

```
