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

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

pamil/enum
==========

Enum implementing the flyweight pattern.

v1.0.0(8y ago)212MITPHP

Since Dec 19Pushed 8y ago1 watchersCompare

[ Source](https://github.com/pamil/Enum)[ Packagist](https://packagist.org/packages/pamil/enum)[ RSS](/packages/pamil-enum/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

 Enum
======

[](#----enum)

This library extends [myclabs/php-enum](https://github.com/myclabs/php-enum) with ability to compare enums by their identity (if static methods are used to create them).

Usage
-----

[](#usage)

1. Require this package:

    ```
    $ composer require pamil/enum
    ```
2. Create your enum:

    ```
