2017 © Pedro Peláez
 

library zzzstream

PSR-7 StreamInterface implementation collection

image

juhara/zzzstream

PSR-7 StreamInterface implementation collection

  • Thursday, May 10, 2018
  • by zamronypj
  • Repository
  • 1 Watchers
  • 2 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 150 % Grown

The README.md

zzzstream

PSR-7 StreamInterface implementation collection, (*1)

Requirement

Installation

Run through composer, (*2)

$ composer require juhara/zzzstream

Available StreamInterface implementation

How to use

Create stream instance from string

<?php

use Juhara\ZzzStream\StringStream;

...
$stream = new StringStream('hello world');

//replace PSR-7 ResponseInterface instance with new body
$newResponse = $response->withBody($stream);

Create read-only string stream instance

<?php

use Juhara\ZzzStream\ReadOnlyStringStream;

...
$stream = new ReadOnlyStringStream('hello world');

//replace PSR-7 ResponseInterface instance with new body
$newResponse = $response->withBody($stream);

Force string stream instance to become read-only

<?php

use Juhara\ZzzStream\StringStream;
use Juhara\ZzzStream\ReadOnlyStream;

...
$stream = new ReadOnlyStream(new StringStream('hello world'));

//replace PSR-7 ResponseInterface instance with new body
$newResponse = $response->withBody($stream);

Unit Test

To run unit test, copy phpunit.xml.dist to phpunit.xml and run, (*3)

$ ./vendor/bin/phpunit

Contributing

If you have any improvement or issues please submit PR., (*4)

Thank you., (*5)

The Versions

10/05 2018

dev-master

9999999-dev

PSR-7 StreamInterface implementation collection

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Zamrony P. Juhara

psr stream streaminterface

05/05 2018

v1.0.6

1.0.6.0

PSR-7 StreamInterface implementation collection

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Zamrony P. Juhara

psr stream streaminterface

21/04 2018

v1.0.5

1.0.5.0

PSR-7 StreamInterface implementation collection

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Zamrony P. Juhara

psr stream streaminterface

21/04 2018

v1.0.4

1.0.4.0

PSR-7 StreamInterface implementation collection

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Zamrony P. Juhara

psr stream streaminterface

20/04 2018

dev-development

dev-development

PSR-7 StreamInterface implementation collection

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Zamrony P. Juhara

psr stream streaminterface

16/04 2018

v1.0.3

1.0.3.0

PSR-7 StreamInterface implementation collection

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Zamrony P. Juhara

psr stream streaminterface

15/04 2018

v1.0.2

1.0.2.0

PSR-7 StreamInterface implementation collection

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Zamrony P. Juhara

psr stream streaminterface

13/04 2018

v1.0.1

1.0.1.0

PSR-7 StreamInterface implementation collection

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

by Zamrony P. Juhara

psr stream streaminterface