# clue/stream-filter

A simple and modern approach to stream filtering in PHP

Repository: https://github.com/clue/stream-filter
Canonical: https://ross.abutalabs.com/products/stream-filter
Language: PHP
License: MIT
License Family: permissive
Last push: 2026-07-03T22:45:34+00:00

## Health v2 (maintenance only)
Score: 63/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 90, release rhythm 8, longevity 100
- inputs: {"age_days": 3973, "days_push": 61, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1712, forks 16 (observed 2026-08-28T04:05:25.843713+00:00)

## What it is
A lightweight PHP library providing a simple, modern API for PHP's native stream filtering system. It lets developers attach callback-based filters to streams for on-the-fly transformations like decompression and character encoding transcoding.

## Use cases
- read gzip-compressed files as streams in php
- transcode iso-8859-1 to utf-8 on the fly
- write to bzip2 output stream
- attach a callback filter to a php stream
- remove stream filters from a php stream

## When to choose
- you need stream transformations in PHP without wrestling with the awkward native stream filter API
- you want a tiny dependency with a clean functional API for filtering streams
- you process large files incrementally and need memory-efficient on-the-fly transformations

## When to avoid
- your project is not in PHP
- you need full async or non-blocking stream processing rather than simple filters
- you need higher-level file processing abstractions rather than raw stream filters

## Facets
- artifact type: library
- maturity: stable
- function: serialization, compression, developer-tools
- domain: developer-tools, files, backend
- platform: php, cli
- tags: php-streams, stream-filters, callback-filters, encoding, gzip

## Member repositories
- clue/stream-filter (main) score 63

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:25.843713+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:34:52.065523+00:00, confidence not recorded.
  - readme: https://github.com/clue/stream-filter (fetched 2026-08-28T04:05:25.843713+00:00, sha f918aec6eece)
- Data as of 2026-08-30T08:39:29.467469+00:00.
