? Streams for PHP
This package provides some implementations of the PSR-7 StreamInterface.
You can install this package using composer:
$ composer require mintware-de/streams
Provides read / write access for files.
$stream = new FileStream($filename, $readable = true, $writable = true);
With this implementation you can read data from and write data to the memory.
$stream = new MemoryStream($initialData = '');
Provides read-only access for the
php://input resource. This holds for example the raw HTTP request.
$stream = new InputStream();
Provides write-only access for the
$stream = new OutputStream();
? Unit Tests
Don't forget to hit the ??-Star button if you find this package useful.