whsv26/functional
Functional programming primitives for PHP: Option, Either, Pair, and immutable collections with map, filter, fold, and pattern matching. Handle nulls and errors without exceptions, chain transformations safely, and write expressive, side-effect-free code that works with Laravel and static analysis.
whsv26/functional brings Scala-inspired functional programming primitives to PHP and Laravel. It offers expressive Option and Either types, exhaustive pattern matching, and composable lenses, letting you write null-safe, side-effect-free code that reads like a high-level functional language while remaining fully typed and static-analysis friendly.
How can I help you explore Laravel packages today?