Download the PHP package denprog/river-flow without Composer
On this page you can find all versions of the php package denprog/river-flow. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download denprog/river-flow
More information about denprog/river-flow
Files in denprog/river-flow
Package river-flow
Short Description Functional utilities for PHP 8.5: lazy Pipes, mbstring-aware Strings, and composition Utils with pipe operator support.
License MIT
Informations about the package river-flow
RiverFlow for PHP 8.5
Modern, strictly-typed functional utilities for PHP 8.5: lazy collection pipelines (Pipes), mbstring‑aware string helpers (Strings), and ergonomic composition tools (Utils). Designed for the PHP 8.5 pipe operator |> and built with rigorous QA (Pest, PHPStan max, Rector, CS).
Highlights
- Pipe operator first: idiomatic
|>pipelines, no external wrappers - Lazy + eager: predictable key behavior, memory‑friendly where it matters
- Iterator safety: rewinds non-generator iterators, preserves started generator cursors
- Strong typing: precise PHPDoc generics, PHPStan at max level
- Unicode aware:
Stringsuse mbstring when available - Ergonomics:
tap,identity,compose,pipe - Cross‑platform CI: Linux/macOS/Windows
Requirements
- PHP >= 8.5
- Composer 2
Install
Quickstart
Dual‑mode usage (direct and pipe‑friendly)
- Direct: pass data as the first argument, e.g.
toList([1,2,3]) - Curried / pipe‑friendly: call a function without the data argument to get a callable, then chain with
|>
Other composition helpers (non‑pipe)
In addition to the |> operator, RiverFlow provides classic composition utilities in Utils which do not require pipes.
Module snapshots
Pipes
Strings
Utils
Structs
Documentation
- Start here:
docs/index.md - Module references: Structs
Development
Security
See SECURITY.md for our vulnerability disclosure policy.
Contributing
See CONTRIBUTING.md for setup, standards (PSR-12), and PR process.
Code of Conduct
This project adheres to the Contributor Covenant. See CODE_OF_CONDUCT.md.
Versioning & Changelog
We follow SemVer. See CHANGELOG.md for release notes.
License
MIT — see LICENSE.