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-10-15 03:09:22 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.