stadly/file-waiter-flysystem
最新稳定版本:v1.0.0
Composer 安装命令:
composer require stadly/file-waiter-flysystem
包简介
Flysystem file adapter for FileWaiter.
README 文档
README
Flysystem file adapter for FileWaiter.
Install
Via Composer
$ composer require stadly/file-waiter-flysystem
Usage
use Stadly\FileWaiter\Adapter\Flysystem; use Stadly\FileWaiter\File; use Stadly\FileWaiter\Waiter; $flysystem = new \League\Flysystem\Filesystem($adapter); // Any Flysystem adapter. $filePath = '/path/to/file/in/flysystem'; $streamFactory = new \GuzzleHttp\Psr7\HttpFactory(); // Any PSR-17 compatible stream factory. $file = new File(new Flysystem($flysystem, $filePath, $streamFactory)); $responseFactory = new \GuzzleHttp\Psr7\HttpFactory(); // Any PSR-17 compatible response factory. $waiter = new Waiter($file, $responseFactory); // Serve the file stored in Flysystem using FileWaiter.
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email magnar@myrtveit.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see LICENSE for more information.
统计信息
- 总下载量: 236
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2021-09-10