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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| graham-campbell/result-type | 0.81 | Lightweight PHP Result type implementation for explicit success/failure returns. Provides Ok/Err-style results to avoid exceptions and clarify control flow. Compatible with PHP 7.2.5–8.5; install via Composer. | 553 | 551 | 10 | 12M | 0 | 17.3 | 60.7 | MIT | 5 months ago | |
| anahkiasen/underscore-php | 0.81 | Underscore.php brings functional helpers to PHP inspired by Underscore.js. Chainable, collection and array utilities like map, filter, reduce, groupBy, sortBy, pluck, and more. Handy for concise data manipulation in any PHP project, including Laravel. | 1,110 | 1,108 | 89 | 31K | 29 | 8.8 | 22.3 | — | — | |
| michelf/php-smartypants | 0.79 | PHP port of John Gruber’s SmartyPants: converts plain ASCII punctuation into typographically correct “smart” quotes, dashes, and ellipses. Useful for cleaning up HTML output from Markdown or other text sources, with configurable transformation options. | 111 | 116 | 23 | 168K | 2 | 2.0 | 45.3 | NOASSERTION | — | |
| phootwork/collection | 0.79 | phootwork/collection is a lightweight PHP collection library providing convenient data structures and fluent helpers to work with arrays and iterables. Includes common operations like map/filter/reduce, searching, sorting, and easy conversion between collection types. | 0 | 40 | — | 1M | — | 8.1 | 55.3 | — | — | |
| webimpress/coding-standard | 0.79 | Opinionated PHP_CodeSniffer rules from Webimpress for consistent PHP style. Extends common standards, adds project conventions, and ships with ready-to-use configs for enforcing formatting and best practices across your codebase. | 15 | 15 | 7 | 67K | 5 | 9.2 | 52.2 | BSD-2-Clause | 1 year ago | |
| functional-php/fantasy-land | 0.79 | Fantasy Land–style algebraic structures for PHP to enable interoperable functional patterns. Includes interfaces for Setoid, Semigroup/Monoid, Functor, Applicative, Monad, Foldable/Traversable, plus ready-made law/property tests to verify implementations. | 38 | 39 | 12 | 222K | 2 | 1.5 | 52.5 | BSD-3-Clause | 8 years ago | |
| devster/ubench | 0.79 | Ultra small PHP benchmarking library with a simple API to time code, measure memory usage, run iterations, and print readable results. Great for quick micro-benchmarks in scripts, tests, and CLI tools without dependencies. | 564 | 569 | 70 | 10K | 2 | 6.0 | 18.1 | — | 7 years ago | |
| php-standard-library/option | 0.78 | Option type for PHP with Some/None to replace nullable values with explicit presence semantics. Helps avoid null checks, clarifies intent, and models optional data safely. Part of PHP Standard Library; see docs and contributing links. | 1 | 1 | 0 | 31K | 0 | 21.2 | 64.8 | MIT | 2 weeks ago | |
| phpoption/phpoption | 0.78 | PhpOption brings an Option type to PHP, helping you avoid null-related errors by making “value or none” explicit. Use Some and None to model optional results, write safer APIs, and handle missing values deliberately with a clean, functional-style API. | 2,677 | 2,701 | 67 | 12M | 1 | 33.8 | 56.7 | Apache-2.0 | 5 months ago | |
| php-standard-library/collection | 0.78 | Object-oriented Vector, Map, and Set collections for PHP with both immutable and mutable variants. Part of PHP Standard Library, focused on generic, reusable data structures with consistent APIs. Docs and contribution links available at php-standard-library.dev. | 1 | 1 | 0 | 30K | 0 | 21.2 | 64.9 | MIT | 2 weeks ago | |
| php-standard-library/fun | 0.77 | Functional programming utilities for PHP: compose and pipe callables, decorate functions, and control execution (memoize, throttle, debounce, retry, etc.). Part of PHP Standard Library with focused, reusable helpers for cleaner functional-style code. | 1 | 1 | 0 | 14K | 0 | 21.2 | 61.5 | MIT | 2 weeks ago |
How can I help you explore Laravel packages today?