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

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

webarchitect609/stream-tools
============================

Useful filters and other tools to be used with PHP Stream Functions.

0.0.3(1y ago)11.2kMITPHPPHP ^7.2 || ^8.0CI failing

Since Mar 12Pushed 1y ago1 watchersCompare

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

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

Stream Tools
============

[](#stream-tools)

**Be careful**: it's the early alpha-version so far!

[![Build Status](https://camo.githubusercontent.com/0af74a99c4fe3b8e218910d8d7f1663a55d9174f05709a3448b16bcb9834742c/68747470733a2f2f7472617669732d63692e6f72672f7765626172636869746563743630392f73747265616d2d746f6f6c732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/webarchitect609/stream-tools)

Useful filters and other tools to be used with [PHP Stream Functions](https://www.php.net/manual/en/ref.stream.php).

How to use
----------

[](#how-to-use)

1. Install via [composer](https://getcomposer.org/)

    ```
    composer require webarchitect609/stream-tools
    ```
2. Register the desired filter.

    ```
    use WebArch\StreamTools\Filter\EndOfLineFilter;

    stream_filter_register(EndOfLineFilter::class, EndOfLineFilter::class);
    ```
3. See the filter's phpDocs for help on usage and params. Attach the filter to the opened file resource or other stream.

    ```
    use WebArch\StreamTools\Enum\EndOfLine;
    use WebArch\StreamTools\Filter\EndOfLineFilter;
    /** @var resource $stream */
    stream_filter_append(
        $stream,
        EndOfLineFilter::class,
        STREAM_FILTER_WRITE,
        EndOfLine::WINDOWS
    );
    ```
4. Enjoy!

    ```
    /** @var resource $stream */
    fputs($stream, "All LF symbols\nwill be replaced by CRLF symbols.\nThat's it!");
    ```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Every ~787 days

Total

3

Last Release

719d ago

PHP version history (2 changes)0.0.1PHP ^7.2

0.0.3PHP ^7.2 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/9f9a6e3ee8c76415a66949c630cd1281bfb6a232a5648b2410574fb6e1e09b65?d=identicon)[webarchitect609](/maintainers/webarchitect609)

---

Top Contributors

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

---

Tags

streamstream\_filter\_appendstream\_filter\_registerstream-filter

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[clue/stream-filter

A simple and modern approach to stream filtering in PHP

1.7k271.5M8](/packages/clue-stream-filter)[react/stream

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

691139.1M205](/packages/react-stream)[trafficcophp/bytebuffer

Node.js inspired byte stream buffer for PHP.

33463.7k18](/packages/trafficcophp-bytebuffer)[markrogoyski/itertools-php

Iteration tools for PHP

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

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

735.8k](/packages/alexandre-daubois-lazy-stream)

PHPackages © 2026

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