Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Flow Laravel Package

darkwood/flow

Flow is a PHP 8.5+ package for asynchronous, functional pipelines. Use FlowFactory to compose yielded callables into reusable flows, pass input through Ip, and await results. It supports visual code assembly and ships with examples for flows, Y-combinator, and server/client usage.

View on GitHub
Deep Wiki
Context7

Getting Started

1. Confirm your runtime before anything else. The README requires PHP 8.5 as the minimum. On anything lower, Composer will fail resolution or you'll get parse errors on syntax the package relies on. Check php -v and, if you're pinned to 8.1–8.4, you're looking at the older v1.x line (the changelog shows 8.1 → 8.2 → 8.5 hops), which has a materially different API surface.

composer require darkwood/flow

2. Read in this order:

  • examples/ in the repo — flow.php (linear pipeline), yflow.php (recursion), server.php + client.php (transport), httpchunkflow.php (streaming/chunking). These are the only executable, verified documentation.
  • The published docs at https://darkwood-com.github.io/flow — concepts and diagrams, but treat code samples as aspirational.
  • changelog/ — this package renames things often, and the changelog is effectively the API reference. Start with v1.2.0–v1.2.6 to see where the current surface landed.

3. First use case: a linear, typed transformation pipeline. Flow's model is a generator of callables. Each yield is a stage; each stage receives the previous stage's return value wrapped in an Ip (the envelope/IP object that travels the rail).

use Flow\FlowFactory;
use Flow\Ip;

final class RawOrder
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
adachsoft/changelog-linter
adachsoft/collection
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel
draftsmaninc/draftsman
square-bit/laravel-volition
himito/laravel-mailman
htinlynn/genius-helper
maco-studios/hephaestus
adachsoft/php-code-style