rkr / streams-common
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-08-29 03:29:18 UTC
README
PHP 5.3+ 的基本流实现
基本示例
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);
版本管理
Composer
composer require rkr/php-streams-common dev-master