pixeldev/protocol-stream

一个用于在PHP中创建流封装器的库。

1.0.3 2022-07-15 12:09 UTC

This package is not auto-updated.

Last update: 2024-09-21 20:49:14 UTC


README

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

一个用于在PHP中创建流封装器的库。

使用Composer安装

运行以下命令将包添加到项目的composer.json文件中

$ 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');

作者

还可以查看参与此项目的贡献者列表

许可证

本项目采用MIT许可证。请参阅LICENSE文件以获取详细信息。