Skip to content

goldspecdigital/phpenum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Enum Wrapper

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.

About

A small PHP class which adds enum-like functionality to PHP

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages