girgias/php-enums

This package is abandoned and no longer maintained. No replacement package was suggested.

Basic Enums in PHP

1.0.1 2019-02-07 00:44 UTC

This package is not auto-updated.

Last update: 2021-08-01 15:30:13 UTC


README

A simple base for Enums in PHP

Installing

composer require girgias/php-enums

Features

Extend the `Base` class and define constants within the class.

Names and values of these constants can be verified with:

  • `isValidName('NAME')`
  • `isValidValue($mixedValue)`

Contributing

If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.

Links

Licensing

The code in this project is licensed under MIT license.