thibaud-dauce/pattern-matching

Pattern matching in PHP

1.2.0 2018-11-14 13:40 UTC

This package is auto-updated.

Last update: 2024-12-15 03:25:36 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.