PHPackages                             decodelabs/deliverance - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. decodelabs/deliverance

ActiveLibrary

decodelabs/deliverance
======================

Shared data transfer interfaces

v0.3.4(9mo ago)027.1k5MITPHPPHP ^8.4CI passing

Since Apr 9Pushed 5mo ago2 watchersCompare

[ Source](https://github.com/decodelabs/deliverance)[ Packagist](https://packagist.org/packages/decodelabs/deliverance)[ RSS](/packages/decodelabs-deliverance/feed)WikiDiscussions develop Synced 4w ago

READMEChangelog (10)Dependencies (2)Versions (26)Used By (5)

Deliverance
===========

[](#deliverance)

[![PHP from Packagist](https://camo.githubusercontent.com/677e60195affc6cc20d654b58cf37456eb4d1b4af7ab8295e58a878a6ff4bd6b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6465636f64656c6162732f64656c69766572616e63653f7374796c653d666c6174)](https://packagist.org/packages/decodelabs/deliverance)[![Latest Version](https://camo.githubusercontent.com/bdf10ff217af8f8544d2e7a95ae8f0f6f8532293b5848339254b70242e89fb8f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6465636f64656c6162732f64656c69766572616e63652e7376673f7374796c653d666c6174)](https://packagist.org/packages/decodelabs/deliverance)[![Total Downloads](https://camo.githubusercontent.com/724035c15a94d0337934e2d79253fc54204aa11a640aa71f673cbadea2b78fd7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6465636f64656c6162732f64656c69766572616e63652e7376673f7374796c653d666c6174)](https://packagist.org/packages/decodelabs/deliverance)[![GitHub Workflow Status](https://camo.githubusercontent.com/35c751300af3bec9ae643d493b6000d999ff70b720367ec443e37079393755c3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6465636f64656c6162732f64656c69766572616e63652f696e746567726174652e796d6c3f6272616e63683d646576656c6f70)](https://github.com/decodelabs/deliverance/actions/workflows/integrate.yml)[![PHPStan](https://camo.githubusercontent.com/e25c14ce011edabdd0fbd2e10415b41cc5d66ed11ef3e5b7edd074c5bdd35a2d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d656e61626c65642d3434434331312e7376673f6c6f6e6743616368653d74727565267374796c653d666c6174)](https://github.com/phpstan/phpstan)[![License](https://camo.githubusercontent.com/7e5b98284b6aae5388ea1203d77532c45a6c9fe10e3bada0b96525ff00e0ec94/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6465636f64656c6162732f64656c69766572616e63653f7374796c653d666c6174)](https://packagist.org/packages/decodelabs/deliverance)

### Shared data transfer interfaces for PHP

[](#shared-data-transfer-interfaces-for-php)

Deliverance is a middleware library intended to be used by other framework systems that need to manage multiplex IO operations.

---

Installation
------------

[](#installation)

This package requires PHP 8.4 or higher.

Install via Composer:

```
composer require decodelabs/deliverance
```

Usage
-----

[](#usage)

### Channels

[](#channels)

Channels represent simple in / out handlers and can be written to and read from:

```
use DecodeLabs\Deliverance;

$stream = Deliverance::openStream('path/to/file');
$stream->writeLine('Hello world');

$stream = Deliverance::openCliOutputStream(); // Same as new Deliverance\Channel\Stream(STDOUT);

$buffer = Deliverance::newBuffer();
$buffer->write('Some text to buffer');
echo $buffer->read(6); // "Some t"
```

### IO Broker

[](#io-broker)

Channels can be grouped together and managed by an `IO Broker` -

```
use DecodeLabs\Deliverance;

// Create a CLI IO handler
$broker = Deliverance::newBroker()
    ->addInputProvider(Deliverance::openStream(STDIN))
    ->addOutputReceiver(Deliverance::openStream(STDOUT))
    ->addErrorReceiver(Deliverance::openStream(STDERR));

// Shortcut to the above:
$broker = Deliverance::newCliBroker();

// Read line from CLI
$broker->readBlocking = true;
$text = $broker->readLine();

// Write it back to output
$broker->writeLine('INPUT: '.$text);
```

Once grouped, the Channels in an IO broker can be used as the interface between many different information sources; see [Systemic Unix process launcher](https://github.com/decodelabs/systemic/blob/develop/src/Systemic/Process/Launcher/Unix.php) for an example of an IO Broker managing input and output with `proc_open()`.

Licensing
---------

[](#licensing)

Deliverance is licensed under the MIT License. See [LICENSE](./LICENSE) for the full license text.

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance69

Regular maintenance activity

Popularity23

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~67 days

Recently: every ~14 days

Total

24

Last Release

296d ago

PHP version history (4 changes)v0.1.0PHP ^7.2|^8.0

v0.2.0PHP ^8.0

v0.2.12PHP ^8.1

v0.2.14PHP ^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/8a241d64d12b3b5ee94197862ec1ec30b82ed2efa34a0cd7f4c3565a021daddd?d=identicon)[betterthanclay](/maintainers/betterthanclay)

---

Top Contributors

[![betterthanclay](https://avatars.githubusercontent.com/u/1273586?v=4)](https://github.com/betterthanclay "betterthanclay (140 commits)")

---

Tags

data-transferinput-outputmultiplexphpiotransfer

### Embed Badge

![Health badge](/badges/decodelabs-deliverance/health.svg)

```
[![Health](https://phpackages.com/badges/decodelabs-deliverance/health.svg)](https://phpackages.com/packages/decodelabs-deliverance)
```

###  Alternatives

[react/stream

Event-driven readable and writable streams for non-blocking I/O in ReactPHP

688126.8M194](/packages/react-stream)[amphp/byte-stream

A stream abstraction to make working with non-blocking I/O simple.

392116.2M104](/packages/amphp-byte-stream)[gos/web-socket-bundle

Symfony Web Socket Bundle

6202.2M8](/packages/gos-web-socket-bundle)[amphp/pipeline

Asynchronous iterators and operators.

7432.7M34](/packages/amphp-pipeline)[amphp/file

Non-blocking access to the filesystem based on Amp and Revolt.

1103.3M94](/packages/amphp-file)[geo-io/wkb-parser

Well-known binary (WKB) Parser.

786.0M48](/packages/geo-io-wkb-parser)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
