PHPackages                             smt/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. [CLI &amp; Console](/categories/cli)
4. /
5. smt/streams

ActiveLibrary[CLI &amp; Console](/categories/cli)

smt/streams
===========

Another abstraction over output

v1.0.0(10y ago)016MITPHPPHP &gt;=5.4

Since Aug 11Pushed 10y ago1 watchersCompare

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

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

smt/streams
===========

[](#smtstreams)

Another abstraction over output.

Key-features
------------

[](#key-features)

Redirecting to another stream.

Installation
------------

[](#installation)

```
composer require smt/streams

```

Usage
-----

[](#usage)

```
use Smt\Streams\SymfonyOutputStream;
use Smt\Streams\FileStream;
use Smt\Streams\DummyStream;

$outStream = new SymfonyOutputStream($out);
$outStream
    ->write('Hello')
    ->redirect(new FileStream('truth.txt'))
    ->write('Time')
    ->write(' to')
    ->write(' take')
    ->write(' over')
    ->write(' the')
    ->setRedirectMode(FileStream::WRITE_REDIRECT)
    ->writeln('world')
;
// Symfony out - "Hello world"
// truth.txt - "Time to take over the world"

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

3933d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/056f804db1fb4e94cf408db237cf37b934a0c19253decb2ab5e1fae236f1ef83?d=identicon)[smt](/maintainers/smt)

---

Tags

streamclisymfonyfile

### Embed Badge

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

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

###  Alternatives

[nunomaduro/collision

Cli error handling for console/command-line PHP applications.

4.6k331.8M8.5k](/packages/nunomaduro-collision)[fidry/console

Library to create CLI applications

192.0M4](/packages/fidry-console)[mahocommerce/maho

Free and open source ecommerce platform, created in 2024 on the M1 platform, PHP 8.3+

1322.1k12](/packages/mahocommerce-maho)[duncan3dc/console

Create command line php applications using symfony/console

17263.4k2](/packages/duncan3dc-console)[eddiriarte/console-select

A fancy selection interface for symfony's console component.

117.2k2](/packages/eddiriarte-console-select)

PHPackages © 2026

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