Download the PHP package hell-sh/enum without Composer
On this page you can find all versions of the php package hell-sh/enum. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor hell-sh
Package enum
Short Description A simple, abstract class to improve your 'enums'.
License Unlicense
Homepage https://github.com/hell-sh/php-enum
Package enum
Short Description A simple, abstract class to improve your 'enums'.
License Unlicense
Homepage https://github.com/hell-sh/php-enum
Please rate this library. Is it a good library?
Informations about the package enum
php-enum
A simple, abstract class to improve your 'enums'.
Usage
composer require hell-sh/enum ^1.0
-
Make your enum(s) extend
hellsh\Enum
: - Enjoy the added methods:
MyEnum::valueOf(string $name)
MyEnum::all(): array
MyEnum::nameOf($value): ?string
MyEnum::validateName(string $name): bool
MyEnum::validateValue($value): bool
All versions of enum with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1
The package hell-sh/enum contains the following files
Loading the files please wait ....