An open API service indexing awesome lists of open source software.

https://github.com/daverandom/enum

A base class for enumerations in PHP
https://github.com/daverandom/enum

Last synced: over 1 year ago
JSON representation

A base class for enumerations in PHP

Awesome Lists containing this project

README

          

# Enum

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](https://travis-ci.org/DaveRandom/Enum.svg?branch=master)](https://travis-ci.org/DaveRandom/Enum)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/DaveRandom/Enum/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/DaveRandom/Enum/?branch=master)
[![Code Coverage](https://scrutinizer-ci.com/g/DaveRandom/Enum/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/DaveRandom/Enum/?branch=master)