Download the PHP package joaorbrandao/phenum without Composer
On this page you can find all versions of the php package joaorbrandao/phenum. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download joaorbrandao/phenum
More information about joaorbrandao/phenum
Files in joaorbrandao/phenum
Download joaorbrandao/phenum
More information about joaorbrandao/phenum
Files in joaorbrandao/phenum
Vendor joaorbrandao
Package phenum
Short Description PHP enums made easy.
License MIT
Homepage https://github.com/joaorbrandao/phenum
Package phenum
Short Description PHP enums made easy.
License MIT
Homepage https://github.com/joaorbrandao/phenum
Please rate this library. Is it a good library?
Informations about the package phenum
PHENUM
This package creates a simple way of creating PHP enums (one more!). Your IDE will detect them without using DocBlocks. In the end, it's all about PHP constants!
Installing
Usage
Create an Enum
- Create a class.
- Extend the
Enum
class. - Use the
Enumerable
trait. - Define PHP constants as needed.
Use it
We're talking about PHP constants, so:
But in case you need some help like getting all defined values, the first, last, etc:
License
phenum is an open-source package licensed under the MIT license.
All versions of phenum with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
The package joaorbrandao/phenum contains the following files
Loading the files please wait ....