Recommend this page to a friend! |
Download .zip |
Info | Documentation | View files (17) | Download .zip | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 14 | All time: 10,548 This week: 231 |
Version | License | PHP version | Categories | |||
streams 1.0 | MIT/X Consortium ... | 5 | PHP 5, Stream wrappers, PSR |
Description | Author | |
This package implements the access to data as defined in PSR-7. |
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.
use \MintWare\Streams\FileStream;
$stream = new FileStream($filename, $readable = true, $writable = true);
With this implementation you can read data from and write data to the memory.
use \MintWare\Streams\MemoryStream;
$stream = new MemoryStream($initialData = '');
Provides read-only access for the php://input
resource. This holds for example the raw HTTP request.
use \MintWare\Streams\InputStream;
$stream = new InputStream();
Provides write-only access for the php://output
resource.
use \MintWare\Streams\OutputStream;
$stream = new OutputStream();
$ phpunit
Don't forget to hit the ??-Star button if you find this package useful. Thanks ?
Files |
File | Role | Description | ||
---|---|---|---|---|
src (5 files) | ||||
tests (6 files) | ||||
.travis.yml | Data | Auxiliary data | ||
CHANGELOG.md | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
phpunit.xml | Data | Auxiliary data | ||
README.md | Doc. | Documentation |
Files | / | src |
File | Role | Description |
---|---|---|
FileStream.php | Class | Class source |
InputStream.php | Class | Class source |
MemoryStream.php | Class | Class source |
OutputStream.php | Class | Class source |
ResourceStream.php | Class | Class source |
Files | / | tests |
File | Role | Description |
---|---|---|
autoload.php | Aux. | Auxiliary script |
FileStreamTest.php | Class | Class source |
InputStreamTest.php | Class | Class source |
MemoryStreamTest.php | Class | Class source |
OutputStreamTest.php | Class | Class source |
ResourceStreamTest.php | Class | Class source |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.