thibaud-dauce/pattern-matching

Pattern matching in PHP

1.2.0 2018-11-14 13:40 UTC

This package is auto-updated.

Last update: 2020-02-14 16:55:52 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.