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

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

wok/stream
==========

WOK Stream handler component

v1.1.0(9y ago)092↓100%1MITPHP

Since Nov 21Pushed 9y ago1 watchersCompare

[ Source](https://github.com/web-operational-kit/stream)[ Packagist](https://packagist.org/packages/wok/stream)[ RSS](/packages/wok-stream/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (5)Used By (1)

Stream
======

[](#stream)

This library is a Stream handler.

**Diclaimer :** This component is part of the [WOK](https://github.com/web-operational-kit/) (Web Operational Kit) framework. It however can be used as a standalone library.

Install
-------

[](#install)

It is recommanded to install that component as a dependency using [Composer](https://getcomposer.org/) :

```
composer require wok/stream

```

You're also free to get it with [git](https://git-scm.com/) or by [direct download](https://github.com/web-operational-kit/stream/archive/master.zip) while this package has no dependencies.

```
git clone https://github.com/web-operational-kit/stream.git

```

Usage
-----

[](#usage)

```
use \WOK\Stream\Stream;

/**
 * Instanciation
 * ---
**/

// Instanciate handler from a resource (default)
$resource = fopen('php://temp', 'w+');
$stream = new Stream($resource);

// Instanciate handler from a file
$stream = Stream::createFromFile('/path/to/my/file.txt');

// Instanciate handler from a string
$stream = Stream::createFromString('here is my string');
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity66

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

Total

3

Last Release

3397d ago

### Community

Maintainers

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

---

Top Contributors

[![graphidev](https://avatars.githubusercontent.com/u/2820221?v=4)](https://github.com/graphidev "graphidev (6 commits)")

---

Tags

php-librarystream

### Embed Badge

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

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

PHPackages © 2026

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