thibaud-dauce/pattern-matching

Pattern matching in PHP

1.2.0 2018-11-14 13:40 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.