A library to create stream wrappers in PHP.
Run the following command to add the package to the composer.json of your project:
$ composer require niels-nijens/protocol-stream
<?php
$stream = new Stream('stream', array('domain' => '/allowed/path'));
StreamManager::create()->registerStream($stream);
readfile('stream://domain/file-in-allowed-path.ext');
Also see the list of contributors who participated in this project.
This project licensed under the MIT License. Please see the LICENSE file for details.