PHPackages                             juhara/zzzstream - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. juhara/zzzstream

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

juhara/zzzstream
================

PSR-7 StreamInterface implementation collection

v1.0.7(2mo ago)2108Apache-2.0PHPPHP ^7.2 || ^8.0

Since Apr 13Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/zamronypj/zzzstream)[ Packagist](https://packagist.org/packages/juhara/zzzstream)[ RSS](/packages/juhara-zzzstream/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (2)Versions (9)Used By (0)

zzzstream
=========

[](#zzzstream)

PSR-7 [StreamInterface](https://www.php-fig.org/psr/psr-7/#34-psrhttpmessagestreaminterface) implementation collection

Requirement
===========

[](#requirement)

- [PHP &gt;= 7.2](https://php.net)
- [Composer](https://getcomposer.org)
- [PSR-7 StreamInterface](https://www.php-fig.org/psr/psr-7/#34-psrhttpmessagestreaminterface).

Installation
============

[](#installation)

Run through composer

```
$ composer require juhara/zzzstream

```

Available StreamInterface implementation
========================================

[](#available-streaminterface-implementation)

- `StringStream` string-based [StreamInterface](https://www.php-fig.org/psr/psr-7/#34-psrhttpmessagestreaminterface) implementation.
- `ReadOnlyStringStream` read-only string-based [StreamInterface](https://www.php-fig.org/psr/psr-7/#34-psrhttpmessagestreaminterface) implementation.
- `WriteOnlyStringStream` write-only string-based [StreamInterface](https://www.php-fig.org/psr/psr-7/#34-psrhttpmessagestreaminterface) implementation.
- `WrapperStream` decorator class that implements [StreamInterface](https://www.php-fig.org/psr/psr-7/#34-psrhttpmessagestreaminterface) which does nothing except wraps other [StreamInterface](https://www.php-fig.org/psr/psr-7/#34-psrhttpmessagestreaminterface) instance.
- `ReadOnlyStream` decorator class that turn other [StreamInterface](https://www.php-fig.org/psr/psr-7/#34-psrhttpmessagestreaminterface) into read only stream.
- `WriteOnlyStream` decorator class that turn other [StreamInterface](https://www.php-fig.org/psr/psr-7/#34-psrhttpmessagestreaminterface) into write only stream.
- `FileStream` file-based [StreamInterface](https://www.php-fig.org/psr/psr-7/#34-psrhttpmessagestreaminterface) implementation.
- `TempStream` temporary stream [StreamInterface](https://www.php-fig.org/psr/psr-7/#34-psrhttpmessagestreaminterface) implementation.

How to use
==========

[](#how-to-use)

### Create stream instance from string

[](#create-stream-instance-from-string)

```
