widmogrod/php-functional
Functional programming toolkit for PHP with immutable data structures, monads and typed abstractions. Includes Option/Either/Try, collections, pattern matching, and helpers for safer, composable code. Useful for DDD, CQRS and FP-style application architecture.
Full Changelog: https://github.com/widmogrod/php-functional/compare/6.0.2...7.0.0
You can use php-functional with PHP8
Breaking change match function was renamed to matchExpression
sequence_ sequencesequenceM#85
array is now used only as a tuplerepeat, cycle, take, drop,...How can I help you explore Laravel packages today?