PHPackages                             adam-lutka/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. adam-lutka/php-enum

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

adam-lutka/php-enum
===================

PHP implementation of enum type

v1.0.2(6y ago)014.0k↑777.8%1MITPHPCI failing

Since Apr 21Pushed 6y ago1 watchersCompare

[ Source](https://github.com/AdamLutka/PhpEnum)[ Packagist](https://packagist.org/packages/adam-lutka/php-enum)[ RSS](/packages/adam-lutka-php-enum/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (1)

PHP implementation of enum [![Build Status](https://camo.githubusercontent.com/f4cccb4e065334723a638546981e64f9d3e2861c6e33880fd913d62e7aed2750/68747470733a2f2f7472617669732d63692e6f72672f4164616d4c75746b612f506870456e756d2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/AdamLutka/PhpEnum)
=============================================================================================================================================================================================================================================================================================================

[](#php-implementation-of-enum-)

Enum types are represented by classes. Values of specific enum type are represented by @method annotations that enables code completion and doesn't cause duplicity.

```
