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-03-29 02:44:45 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