pixeldev/protocol-stream

A library to create stream wrappers in PHP.

1.0.3 2022-07-15 12:09 UTC

This package is not auto-updated.

Last update: 2024-05-04 19:00:32 UTC


README

Latest version on Packagist Software License Build Status Coverage Status SensioLabsInsight StyleCI

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.