PHPackages                             digitalcz/streams - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. digitalcz/streams

ActiveLibrary[File &amp; Storage](/categories/file-storage)

digitalcz/streams
=================

Opinionated abstraction around PHP streams implementing PSR-7 StreamInterface

v1.1.0(7mo ago)111.2k↓33.3%[1 PRs](https://github.com/digitalcz/streams/pulls)1MITPHPPHP ^8.1CI passing

Since Feb 17Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/digitalcz/streams)[ Packagist](https://packagist.org/packages/digitalcz/streams)[ Docs](https://github.com/digitalcz/streams)[ RSS](/packages/digitalcz-streams/feed)WikiDiscussions 1.x Synced 1mo ago

READMEChangelog (9)Dependencies (12)Versions (13)Used By (1)

Streams
=======

[](#streams)

[![Latest Stable Version](https://camo.githubusercontent.com/05b711b457848c5b8be1b6e07e83d458a400b157a0228c641569fb1bb44d99ef/687474703a2f2f706f7365722e707567782e6f72672f6469676974616c637a2f73747265616d732f76)](https://packagist.org/packages/digitalcz/streams)[![Total Downloads](https://camo.githubusercontent.com/85ec2932842c43be5fc1dd033bed142dc860e817ecfe7a43599b3fd2e5da2972/687474703a2f2f706f7365722e707567782e6f72672f6469676974616c637a2f73747265616d732f646f776e6c6f616473)](https://packagist.org/packages/digitalcz/streams)[![Latest Unstable Version](https://camo.githubusercontent.com/cc0f36a56897bb86a6f1e178aff3f99fca02a5143687af7bd8f807200146c5da/687474703a2f2f706f7365722e707567782e6f72672f6469676974616c637a2f73747265616d732f762f756e737461626c65)](https://packagist.org/packages/digitalcz/streams)[![License](https://camo.githubusercontent.com/2db779b518eb7af2bde0624338f69ff609a38ebe1ca8e5f4c117f6bc8af3b365/687474703a2f2f706f7365722e707567782e6f72672f6469676974616c637a2f73747265616d732f6c6963656e7365)](https://packagist.org/packages/digitalcz/streams)[![PHP Version Require](https://camo.githubusercontent.com/807f45d3940dc085e7dd37a111360b3b1db32ee1aa592de3b1617d674ae1692d/687474703a2f2f706f7365722e707567782e6f72672f6469676974616c637a2f73747265616d732f726571756972652f706870)](https://packagist.org/packages/digitalcz/streams)[![CI](https://github.com/digitalcz/streams/workflows/CI/badge.svg)](https://github.com/digitalcz/streams/actions)[![codecov](https://camo.githubusercontent.com/2dea9427fe8c7a737792eb078db1c773117dbb337ca445a93080e7d4e5570a9f/68747470733a2f2f636f6465636f762e696f2f67682f6469676974616c637a2f73747265616d732f6272616e63682f302e782f67726170682f62616467652e7376673f746f6b656e3d517a5a35694d4e6b6733)](https://codecov.io/gh/digitalcz/streams)

Opinionated abstraction around PHP streams implementing PSR-7 StreamInterface. It aims to improve working with files or remote streams in unified way.

Heavily inspired by guzzle/psr7.

Install
-------

[](#install)

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

```
$ composer require digitalcz/streams
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer csfix    # fix codestyle
$ composer checks   # run all checks

# or separately
$ composer tests    # run phpunit
$ composer phpstan  # run phpstan
$ composer cs       # run codesniffer
```

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Digital Solutions s.r.o.](https://github.com/digitalcz)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance77

Regular maintenance activity

Popularity27

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 79.5% 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 ~110 days

Recently: every ~174 days

Total

11

Last Release

88d ago

Major Versions

0.x-dev → v1.0.02025-05-15

### Community

Maintainers

![](https://www.gravatar.com/avatar/3cdd1a59b82ee65304942a9e50a35ed1628b43db456088c334e73f8e80db9237?d=identicon)[spajxo](/maintainers/spajxo)

![](https://avatars.githubusercontent.com/u/19805238?v=4)[DigitalCz](/maintainers/digitalcz)[@digitalcz](https://github.com/digitalcz)

---

Top Contributors

[![spajxo](https://avatars.githubusercontent.com/u/12384486?v=4)](https://github.com/spajxo "spajxo (62 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (8 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (8 commits)")

---

Tags

fileStreams

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/digitalcz-streams/health.svg)

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

###  Alternatives

[league/flysystem

File storage abstraction for PHP

13.6k639.1M2.2k](/packages/league-flysystem)[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M790](/packages/league-flysystem-aws-s3-v3)[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[knplabs/knp-gaufrette-bundle

Allows to easily use the Gaufrette library in a Symfony project

72428.6M91](/packages/knplabs-knp-gaufrette-bundle)[league/flysystem-local

Local filesystem adapter for Flysystem.

225231.8M39](/packages/league-flysystem-local)[sonata-project/media-bundle

Symfony SonataMediaBundle

4625.5M71](/packages/sonata-project-media-bundle)

PHPackages © 2026

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