pixeldev / protocol-stream
A library to create stream wrappers in PHP.
1.0.3
2022-07-15 12:09 UTC
Requires
- php: ^7.0.0 || ^8.0.0
Requires (Dev)
- php-coveralls/php-coveralls: ^2.5
- phpunit/phpunit: ^4.8
This package is not auto-updated.
Last update: 2024-11-02 21:22:18 UTC
README
A library to create stream wrappers in PHP.
Installation using Composer
Run the following command to add the package to the composer.json of your project:
$ composer require niels-nijens/protocol-stream
Usage
<?php $stream = new Stream('stream', array('domain' => '/allowed/path')); StreamManager::create()->registerStream($stream); readfile('stream://domain/file-in-allowed-path.ext');
Author
Also see the list of contributors who participated in this project.
License
This project licensed under the MIT License. Please see the LICENSE file for details.