Download the PHP package aldemeery/enum-polyfill without Composer
On this page you can find all versions of the php package aldemeery/enum-polyfill. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download aldemeery/enum-polyfill
More information about aldemeery/enum-polyfill
Files in aldemeery/enum-polyfill
Download aldemeery/enum-polyfill
More information about aldemeery/enum-polyfill
Files in aldemeery/enum-polyfill
Vendor aldemeery
Package enum-polyfill
Short Description A Polyfill for the SplEnum type in PHP
License MIT
Package enum-polyfill
Short Description A Polyfill for the SplEnum type in PHP
License MIT
Please rate this library. Is it a good library?
Informations about the package enum-polyfill
SplEnum
This is a polyfill for the SplEnum
type from the PECL extension, so you don't have
to download and install the extension on you server.
SplEnum gives the ability to emulate and create enumeration objects natively in PHP.
Example
From the php.net documentation.
The above example will output
Class sypnosis
Predefined Constants
Methods
SplType::__construct
The SplEnum
constructor.
Parameters
initial_value
The initial value of the enum.
Errors/Exceptions
Throws an UnexpectedValueException
if incompatible type is given.
SplEnum::getConstList
Returns all the consts as an array
Parameters
include_default
Whether to include __default property.
Author
- Osama Aldemeery [email protected]
All versions of enum-polyfill with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1
The package aldemeery/enum-polyfill contains the following files
Loading the files please wait ....