| Recommend this page to a friend! | 
|  Download | 
| Info | Documentation |  Files |  Install with Composer |  Download | Reputation | Support forum | Blog | Links | 
| Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
| 2025-06-03 (-4 hours ago)  | Not yet rated by the users | Total: 17 | All time:  11,405 This week: 560  | |||||
| 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 (17) | 
| File | Role | Description | ||
|---|---|---|---|---|
|  .github (1 directory) | ||||
|  src (5 files) | ||||
|  tests (5 files) | ||||
|    CHANGELOG.md | Data | Auxiliary data | ||
|    composer.json | Data | Auxiliary data | ||
|    LICENSE | Lic. | License text | ||
|    phpstan.neon | Data | Auxiliary data | ||
|    phpunit.xml | Data | Auxiliary data | ||
|    README.md | Doc. | Documentation | ||
|  Files (17) | / | 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 (17) | / | tests | 
| File | Role | Description | 
|---|---|---|
|  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 | 
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. | 
|  Install with Composer | 
| 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.
 If you know an application of this package, send a message to the author to add a link here.