Download the PHP package natepisarski/random-enum without Composer
On this page you can find all versions of the php package natepisarski/random-enum. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download natepisarski/random-enum
More information about natepisarski/random-enum
Files in natepisarski/random-enum
Download natepisarski/random-enum
More information about natepisarski/random-enum
Files in natepisarski/random-enum
Vendor natepisarski
Package random-enum
Short Description Trait to pseudo-randomly choose Enum elements
License MIT
Package random-enum
Short Description Trait to pseudo-randomly choose Enum elements
License MIT
Please rate this library. Is it a good library?
Informations about the package random-enum
Random Enum
Utilities for selecting random elements from a PHP Enum.
Installation
Usage
Error Handling
The package provides 2 exceptions to handle caveats:
RandomEnumSizeException
can be thrown if::randomCase()
orrandomValue()
is called on an empty Enum- A
count
greater than the number of cases is passed to::randomCaseArray()
RandomEnumValueException
::randomValue()
/::randomValueArray
is called on an Enum with no backing values
LICENSE
MIT license, see LICENSE for more information.
All versions of random-enum with dependencies
PHP Build Version
Package Version
No informations.
The package natepisarski/random-enum contains the following files
Loading the files please wait ....