A base class for enumerations in PHP

Installs: 422

Dependents: 6

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/daverandom/enum

1.0.0 2018-01-10 20:07 UTC

This package is auto-updated.

Last update: 2025-09-25 08:31:45 UTC


README

A base class for enumerations in PHP.

This library consists of a single abstract class, which can be extended by enumerations so that they need only define their member values as constants. A number of static methods are provided to facilitate name and value validation and resolution.

It is intended merely as an easy way for me to share this functionality, in a highly node_modules-esque manner. It is probably best that people do not do this, but #yolo.

Status

Build Status Scrutinizer Code Quality Code Coverage