thibaud-dauce / pattern-matching
Pattern matching in PHP
1.2.0
2018-11-14 13:40 UTC
Requires
- php: >=7.0.0
Requires (Dev)
- phpunit/phpunit: ^6.0
Suggests
- illuminate/validation: Required to generate the validation rule.
This package is auto-updated.
Last update: 2024-11-15 03:19:48 UTC
README
This is a small library to pattern match on a list of enums in PHP. Please check my blog post about it.
Installation
composer require thibaud-dauce/pattern-matching
Examples
All possibilities are explained in the test file.