crell/fp
Crell/Fp is a lightweight functional programming toolkit for PHP, offering pipelines, function composition, currying, and immutable collection helpers like map, filter, reduce, and groupBy. It brings concise, expressive functional patterns to everyday PHP code.
crell/fp is a micro-library (pipelining and small functional helpers), not a framework. The real decision it informs is whether to standardize a shared "compose/pipe" utility across services versus letting each squad hand-roll nested function calls. This package is effectively the "buy" option for a ~50-line utility.Consider it when:
Look elsewhere when:
NOASSERTION classification means automated detection failed; this is a hard gate for legal/compliance review in any commercial or redistributed product. Do not ship until counsel signs off in writing.illuminate/collections, established functional-PHP libraries, or the language's own features cover far more ground with bigger communities.pipe() in-house is cheaper than the legal and dependency-management overhead of adding a package.To executives: This is a small, low-cost code-quality tool, not a strategic platform bet. It makes complex data-processing features easier to read, test, and review, which modestly reduces maintenance cost and defect risk on back-office and reporting work. It carries effectively no runtime cost and is trivial to remove. The only real friction is a licensing ambiguity that requires a short legal review before adoption; absent a clean license answer, we should build the equivalent helper in-house at negligible effort.
To engineering: A focused utility for left-to-right composition with a well-regarded PHP-community maintainer. It is small, pinnable, and easy to delete — we would wrap it behind one internal helper so no product code imports it directly. Use it for sequential transformation code; do not use it in hot paths. Prerequisites: PHP 8.1+, an agreed team style guide, and a green light from legal on the license. Budget half a day to evaluate the API against our actual use cases, then decide adopt-or-build.
How can I help you explore Laravel packages today?