Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mtdowling/streamer

Experimental: easy to create PHP stream decorators. The name will probably change.
https://github.com/mtdowling/streamer

Last synced: about 2 months ago
JSON representation

Experimental: easy to create PHP stream decorators. The name will probably change.

Awesome Lists containing this project

README

        

Example:

.. code-block:: php

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);