PHPackages                             crysalead/storage-stream - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. crysalead/storage-stream

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

crysalead/storage-stream
========================

Object-Oriented API for PHP streams

1.0.6(6y ago)120.7k↓26.9%MITPHPPHP &gt;=7

Since Dec 16Pushed 1y ago2 watchersCompare

[ Source](https://github.com/crysalead/storage-stream)[ Packagist](https://packagist.org/packages/crysalead/storage-stream)[ RSS](/packages/crysalead-storage-stream/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (8)Used By (0)

Stream - Object-Oriented API for PHP streams
============================================

[](#stream---object-oriented-api-for-php-streams)

[![Build Status](https://camo.githubusercontent.com/9420398604074b5ba852740210cf782c1f61b3f3801daa44627ee3caf142b32e/68747470733a2f2f7472617669732d63692e6f72672f63727973616c6561642f73746f726167652d73747265616d2e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/crysalead/storage-stream)[![Code Coverage](https://camo.githubusercontent.com/096e7703da1a402be1b4cdfd921f2fb85e7f82c2d959263c997e9cdfbd8639ef/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f63727973616c6561642f73746f726167652d73747265616d2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/crysalead/storage-stream/)

Object-Oriented API for PHP streams (PSR-7 compatible).

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

[](#installation)

```
composer require crysalead/storage-stream
```

Example
-------

[](#example)

```
use Lead\Storage\Stream;

$stream = new Stream(fopen('smiley.png', 'r'));
$image = '';
while (!$stream->eof()) {
  $image .= $stream->read();
}

echo $stream->mime(); // 'image/png'
```

Pipe Example
------------

[](#pipe-example)

```
use Lead\Storage\Stream;

$stream1 = new Stream("Hello");
$stream2 = new Stream("xxxxxWorld");

// copy the contents from the first stream to the second one
$stream1->pipe($stream2);

echo (string) $stream2; // 'HelloWorld'
```

### Acknowledgements

[](#acknowledgements)

Original implementation: [Francois Zaninotto](https://github.com/fzaninotto/Streamer).

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity68

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 ~237 days

Recently: every ~356 days

Total

7

Last Release

2380d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.4

1.0.5PHP &gt;=7

### Community

Maintainers

![](https://www.gravatar.com/avatar/67c78f317fdfb9f077b1f16c88193192f7562e999c536b25943b759c3b5099fb?d=identicon)[jails](/maintainers/jails)

---

Top Contributors

[![jails](https://avatars.githubusercontent.com/u/1306941?v=4)](https://github.com/jails "jails (62 commits)")

---

Tags

stream

### Embed Badge

![Health badge](/badges/crysalead-storage-stream/health.svg)

```
[![Health](https://phpackages.com/badges/crysalead-storage-stream/health.svg)](https://phpackages.com/packages/crysalead-storage-stream)
```

###  Alternatives

[react/stream

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

689126.8M194](/packages/react-stream)[trafficcophp/bytebuffer

Node.js inspired byte stream buffer for PHP.

33437.2k17](/packages/trafficcophp-bytebuffer)[markrogoyski/itertools-php

Iteration tools for PHP

14911.3k](/packages/markrogoyski-itertools-php)[alexandre-daubois/lazy-stream

Write data to streams, only when it is really needed to.

755.7k](/packages/alexandre-daubois-lazy-stream)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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