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
- Host: GitHub
- URL: https://github.com/daverandom/enum
- Owner: DaveRandom
- License: mit
- Created: 2018-01-10T19:53:00.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-10T20:07:40.000Z (over 8 years ago)
- Last Synced: 2025-02-09T00:08:41.687Z (over 1 year ago)
- Language: PHP
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
[](https://travis-ci.org/DaveRandom/Enum)
[](https://scrutinizer-ci.com/g/DaveRandom/Enum/?branch=master)
[](https://scrutinizer-ci.com/g/DaveRandom/Enum/?branch=master)