exsyst/mini-enum

Lightweight enum helpers

1.0.0 2019-04-25 17:57 UTC

This package is auto-updated.

Last update: 2020-01-25 20:20:09 UTC


README

A few lightweight classes to ease working with enums, with very small run-time performance impact.

How to use

  1. Run composer require exsyst/mini-enum in your project ;
  2. Derive your enum classes containing standalone values from EXSyst\MiniEnum\Enum ;
  3. Derive your enum classes containing bit masks from EXSyst\MiniEnum\FlagsEnum.