niels-nijens / protocol-stream
A library to create stream wrappers in PHP.
Installs: 37 123
Dependents: 3
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 3
Open Issues: 0
Requires
- php: ^5.4.0 || ^7.0.0
Requires (Dev)
- phpunit/phpunit: ^4.8
- satooshi/php-coveralls: ^1.0
This package is auto-updated.
Last update: 2024-12-18 02:56:47 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.