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
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| darkwood/flow | 0.85 | Flow is a PHP 8.5+ package for building asynchronous pipelines with a functional style. Define steps with generators, pass typed data through each stage, and await execution. Includes examples and docs, with a focus on assembling code as “flows”. | 18 | 18 | 1 | 68 | 0 | 27.2 | 10.6 | MIT | 3 weeks ago | |
| prewk/option | 0.83 | Lightweight Option type for PHP providing Some/None to avoid nulls. Adds map/flatMap/filter, unwrap with defaults, and safe chaining inspired by functional programming. Handy for Laravel and general PHP codebases where nullable values cause bugs. | 47 | 47 | 8 | 18K | 0 | 1.2 | 37.3 | NOASSERTION | — | |
| abo/generalutil | 0.81 | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | Apache-2.0 | — | |
| lstrojny/functional-php | 0.81 | Functional PHP adds a rich set of functional programming helpers for PHP: map/filter/reduce, partial application, currying, composition, and collections utilities. Write cleaner, more declarative code without changing your framework or coding style. | 1,984 | 1,996 | 202 | 60K | 8 | 31.4 | 28.3 | MIT | 6 months ago | |
| 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. | 554 | 555 | 11 | 13M | 0 | 13.5 | 58.6 | MIT | 4 weeks ago | |
| digitalrevolution/utils | 0.80 | — | 1 | 1 | 8 | 2K | 1 | 29.6 | 50.1 | MIT | 1 month ago | |
| laragraph/utils | 0.80 | Laravel utilities for building GraphQL servers: shared primitives and helpers used by GraphQL packages. Install via Composer and use as a lightweight foundation for SDL-first (Lighthouse) or code-first (graphql-laravel) setups. | 22 | 22 | 8 | 674K | 0 | 15.5 | 60.3 | MIT | 6 months ago | |
| apnet/functional-test-bundle | 0.80 | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| prewk/result | 0.80 | prewk/result brings Rust-like Result to PHP: explicit Ok/Err values for safer, more readable error handling without exceptions. Use map/flatMap, unwrap/unwrapOr, and chain operations to handle success and failure paths cleanly in functional style. | 121 | 121 | 12 | 17K | 0 | 1.9 | 32.4 | NOASSERTION | — | |
| bitandblack/helpers | 0.79 | Lightweight Laravel/PHP helper functions from Bit&Black. Adds practical utilities and shortcuts to speed up everyday development tasks with minimal setup, aiming to keep your codebase cleaner and more consistent across projects. | 0 | 0 | — | 932 | — | 0.0 | 41.0 | — | — | |
| b2pweb/bdf-util | 0.79 | Utilities for working with BDF (Binary Data Format) files in PHP/Laravel. Includes helpers to read, write, parse, and validate BDF data plus common convenience functions for import/export workflows and integration into your application. | 0 | 0 | 0 | 355 | 0 | 0.0 | 35.2 | MIT | — | |
| 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. | 112 | 117 | 22 | 218K | 2 | 2.0 | 46.8 | 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. | 39 | 40 | 4 | 1M | 0 | 8.1 | 55.3 | MIT | 1 year ago | |
| corepine/support | 0.79 | A small collection of Laravel/PHP support utilities from Corepine, providing reusable helpers and common building blocks to simplify everyday application code and package development. | 0 | 0 | 0 | 3 | 0 | 0.0 | 8.3 | — | — | |
| dualmedia/common | 0.79 | Shared interfaces and reusable logic for DualMedia packages. Typically installed as an internal dependency rather than directly. Provides common contracts and helpers used across the DualMedia ecosystem. | 0 | 0 | 1 | 66 | 0 | 10.7 | 27.1 | MIT | 7 months ago | |
| 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 | 81K | 5 | 9.2 | 53.5 | BSD-2-Clause | 1 year ago | |
| braunstetter/helper | 0.79 | braunstetter/helper is a small PHP/Laravel helper package that groups handy utility functions for everyday development—common string, array, and miscellaneous helpers you can reuse across projects to reduce boilerplate and speed up coding. | 0 | 0 | 0 | 79 | 0 | 1.2 | 26.3 | — | 4 years 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 | 230K | 2 | 1.5 | 52.7 | 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. | 563 | 570 | 70 | 10K | 2 | 6.0 | 18.0 | — | 7 years ago | |
| open-southeners/extended-php | 0.79 | Extended PHP helpers for modern apps: adds convenient functions, utilities, and small enhancements that complement core PHP to reduce boilerplate and speed up everyday development. Lightweight, easy to drop into existing projects. | 0 | 0 | 0 | 837 | 0 | 11.0 | 41.7 | MIT | 10 months ago |
How can I help you explore Laravel packages today?