kor3k/flysystem-stream-wrapper
最新稳定版本:v1.0.11
Composer 安装命令:
composer require kor3k/flysystem-stream-wrapper
包简介
Adapts Flysystem filesystems to PHP stream wrappers.
README 文档
README
Installation
composer require twistor/flysystem-stream-wrapper
Usage
use League\Flysystem\Adapter\Local; use League\Flysystem\Filesystem; use Twistor\FlysystemStreamWrapper; // Get a Filesystem object. $filesystem = new Filesystem(new Local('/some/path')); FlysystemStreamWrapper::register('fly', $filesystem); // Then you can use it like so. file_put_contents('fly://filename.txt', $content); mkdir('fly://happy_thoughts'); FlysystemStreamWrapper::unregister('fly');
Notes
This project tries to emulate the behavior of the standard PHP functions, rename(), mkdir(), unlink(), etc., as closely as possible. This includes emitting wanrings. If any differences are discovered, please file an issue.
统计信息
- 总下载量: 6.83k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-11-19