Download the PHP package flashlabs/enums without Composer
On this page you can find all versions of the php package flashlabs/enums. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download flashlabs/enums
More information about flashlabs/enums
Files in flashlabs/enums
Download flashlabs/enums
More information about flashlabs/enums
Files in flashlabs/enums
Vendor flashlabs
Package enums
Short Description Tools to make work with PHP enums easier
License MIT
Package enums
Short Description Tools to make work with PHP enums easier
License MIT
Please rate this library. Is it a good library?
Informations about the package enums
ENUMS
PHP Enums contains tools to make your work with enums easier
Requires PHP >= 8.1.0.
Available Tools
EnumValues
: trait that provide::values()
method returning cases' values
Installation
You can add this library as a local, per-project dependency to your project using Composer:
Docs
EnumValues
supports all Enum
types: Backed
and Pure
For the Backed
Enums
values are as defined, for the Pure
values are null
.
Usage
Include EnumValues
trait in your Enum
object:
Use ::values()
straight away:
Issues & Propositions
You can submit issues & propositions via GH tracker: https://github.com/flashlabs/enums/issues
All versions of enums with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
The package flashlabs/enums contains the following files
Loading the files please wait ....