Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/mtdowling/streamer
- Owner: mtdowling
- Created: 2014-07-09T04:33:35.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-07-09T05:00:35.000Z (over 10 years ago)
- Last Synced: 2024-05-09T14:12:03.219Z (8 months ago)
- Language: PHP
- Homepage:
- Size: 121 KB
- Stars: 14
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
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);