Experimental: easy to create PHP stream decorators. The name will probably change.
PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
README.rst
composer.json

README.rst

Example:

require 'vendor/autoload.php';

use GuzzleHttp\Streamer\Utils;
use GuzzleHttp\Streamer\BaseWrapper;
use GuzzleHttp\Streamer\NoSeek;

$base = Utils::fromString('foobar');
$f = NoSeek::wrap($base);

echo fread($f, 10);
fseek($f, 0);
echo fread($f, 10);
fseek($base, 0);
echo fread($base, 10);