rkr / streams-common
Basic stream implementations for PHP 5.3+
0.0.1
2014-02-10 09:26 UTC
Requires
- rkr/streams: dev-master
Requires (Dev)
- phpunit/phpunit: 3.7.*
This package is auto-updated.
Last update: 2024-10-29 03:58:37 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
Composer
composer require rkr/php-streams-common dev-master