A useful enum wrapper.

Installs: 47 920

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/goldspecdigital/phpenum

v1.0.3 2018-01-20 10:41 UTC

This package is auto-updated.

Last update: 2025-09-28 02:51:00 UTC


README

Build Status

A useful class which can be extended to give enum-like features to your code. Is intended to be used when modeling the MySQL enum type.

Features

  • Get an array of all the enum keys and values.
  • Check if the enum contains a value.
  • Check if the enum has a key.
  • Easy to use, simply extend the Enum class.

Installation

Simply run: composer require goldspecdigital/phpenum "~1.0"

Contributing

Anyone can contribute to this simple project. Simply submit a pull request at the goldspecdigital/phpenum repository.