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

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

fabik/filter-stream
===================

Filter Stream - an utility for files pre-processing.

10PHP

Since Sep 28Pushed 13y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Filter Stream
=============

[](#filter-stream)

Filter Stream is an utility for files pre-processing.

Usage
-----

[](#usage)

```
use Nette\Caching\Storages\FileStorage,
	FilterStream\CallbackFilter,
	FilterStream\CachedFilter,
	FilterStream\FilterStream;

$cacheStorage = new FileStorage(APP_DIR . '/../temp');

$filter = new CallbackFilter(function ($path) {
	$ext = strtolower(pathinfo($path, PATHINFO_EXTENSION));
	if ($ext === 'php') {
		$source = file_get_contents($path);
		// ...
		return $source;
	} else {
		return NULL;
	}
});

$filter = new CachedFilter($filter, $cacheStorage);

FilterStream::register('filter', $filter);
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/816866?v=4)[Jan-Sebastian Fabík](/maintainers/fabik)[@fabik](https://github.com/fabik)

---

Top Contributors

[![fabik](https://avatars.githubusercontent.com/u/816866?v=4)](https://github.com/fabik "fabik (17 commits)")

### Embed Badge

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

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

###  Alternatives

[airesvsg/acf-to-rest-api-recursive

Get ACF fields recursively

442.5k](/packages/airesvsg-acf-to-rest-api-recursive)

PHPackages © 2026

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