Download the PHP package manchenkov/php-enum without Composer
On this page you can find all versions of the php package manchenkov/php-enum. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download manchenkov/php-enum
More information about manchenkov/php-enum
Files in manchenkov/php-enum
Download manchenkov/php-enum
More information about manchenkov/php-enum
Files in manchenkov/php-enum
Vendor manchenkov
Package php-enum
Short Description Enumeration type - PHP implementation with useful magic methods
License MIT
Package php-enum
Short Description Enumeration type - PHP implementation with useful magic methods
License MIT
Please rate this library. Is it a good library?
Informations about the package php-enum
PHP Enum
Basic enumeration implementation in PHP, easy and ready to use.
- Enum: to create simple enumeration class
- StrictEnum: to create enumeration with strict variables type
Installation
You have to run following command to add a dependency to your project
or you can add this line to require
section of composer.json
How to use
Create a new class like UserType.php
and paste the following code example:
Now You can create a new instance of UserType
enumeration and work with some methods:
All versions of php-enum with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.4
The package manchenkov/php-enum contains the following files
Loading the files please wait ....