rkr/streams-common

Basic stream implementations for PHP 5.3+

0.0.1 2014-02-10 09:26 UTC

This package is auto-updated.

Last update: 2024-11-29 04:08:54 UTC


README

Basic stream implementations for PHP 5.3+

Basic example:

use Kir\Streams\InputStream;
use Kir\Streams\Common\PhpStream;

function test(InputStream $stream) {
	echo $stream->read();
}

$stream = new PhpStream('php://memory', 'r+', true);
$stream->write('This is a test')->rewind();
test($stream);

Versioning

www.semver.org

Composer

composer require rkr/php-streams-common dev-master