PHPackages                             meekframework/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. meekframework/stream

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

meekframework/stream
====================

v1.0.0(8y ago)06MITPHPPHP ^7.1

Since Nov 10Pushed 7y ago2 watchersCompare

[ Source](https://github.com/meekframework/stream)[ Packagist](https://packagist.org/packages/meekframework/stream)[ RSS](/packages/meekframework-stream/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

MeekFramework Stream Component
==============================

[](#meekframework-stream-component)

[![Scrutinizer Build Status](https://camo.githubusercontent.com/465a4c83a8dcc0b1ffb92698b6d1a10f184e6e9bd7668fe7fd5deef34c502352/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d65656b6672616d65776f726b2f73747265616d2f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/meekframework/stream/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/77e291f0528f2f4bf9826371aa90e8d8c04b259cb6c63435527b95944d5002e3/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d65656b6672616d65776f726b2f73747265616d2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/meekframework/stream/?branch=master)[![Scrutinizer Code Coverage](https://camo.githubusercontent.com/005a2e4ee23bd23a3f6e7a6fc106548cd631df6bfb777bdde2f01fa915a39e66/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d65656b6672616d65776f726b2f73747265616d2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/meekframework/stream/?branch=master)[![Packagist Latest Stable Version](https://camo.githubusercontent.com/2136582452659d0aef21ca8321da5672cfe3d4e66d6a8139876033c0cb719c9a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d65656b6672616d65776f726b2f73747265616d2e737667)](https://packagist.org/packages/meekframework/stream)[![MIT License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://raw.githubusercontent.com/meekframework/stream/master/LICENSE.md)

A set of interfaces for working with streams, as well as an in-memory implementation.

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

[](#installation)

With [Composer](https://getcomposer.org/):

```
composer require meekframework/stream
```

Usage
-----

[](#usage)

Using the interfaces:

```
// write to stdout...
class CliOutput implements Meek\Stream\Writable
{
    public function write(string $data): int
    {
        // implementation here...
    }
}

// read from stdin...
class CliInput implements Meek\Stream\Readable, Meek\Stream\Seekable
{
    // implement methods from contracts...
}
```

Using the in-memory `Buffer` class:

```
$stream = new Buffer('hello');

$stream->read(2);   // returns 'he'
$stream->getContents(); // returns 'llo'
$stream->write(' world');

$stream->rewind();
$stream->getContents(); // returns 'hello world'
```

Interfaces
----------

[](#interfaces)

- Duplex
- Lockable
- Readable
- Seekable
- Transform
- Writable

Contributing
------------

[](#contributing)

See [CONTRIBUTING.md](CONTRIBUTING.md).

Credits/Authors
---------------

[](#creditsauthors)

License
-------

[](#license)

The MIT License (MIT). Please see [LICENSE.md](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

3108d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e93745edebd93db8403aa15d87018bff176fafb71007d17c4463870a63900092?d=identicon)[nbish11](/maintainers/nbish11)

---

Top Contributors

[![nbish11](https://avatars.githubusercontent.com/u/1518821?v=4)](https://github.com/nbish11 "nbish11 (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[magefan/module-conflict-detector

Detect extension conflicts

4872.6k2](/packages/magefan-module-conflict-detector)

PHPackages © 2026

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