mesour / enum
Mesour enum.
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/mesour/enum
Requires
- php: >=7.1.0
 - consistence/consistence: >=2.0
 
Requires (Dev)
- nette/tester: ^2.2
 - tracy/tracy: ^2.7
 
This package is auto-updated.
Last update: 2020-09-08 00:52:50 UTC
README
The main advantages of using enums for representing set of values are:
- you can be sure, that the value is unchanged (not only validated once)
 - you can use type hints to check that only the defined set of values is acceptable
 - you can define behavior on top of the represented values
 - you can define properties for enum values
 
Requirements
Library mesour/enum requires PHP 7.1 or higher.
Installation
The best way to install mesour/enum is using Composer.
- Run command 
composer require mesour/enum. 
Documentation
Learn more in the documentation.
How to run tests
- Run command 
vendor/bin/tester -c tests/php.ini tests.