emgag/flysystem-tempdir
最新稳定版本:v3.0.0
Composer 安装命令:
composer require emgag/flysystem-tempdir
包简介
Flysystem adapter for a self-destroying temporary directory
README 文档
README
An adapter for the Flysystem file system abstraction library which creates a temporary directory on local filesystem and which is automatically removed again on object destruct.
Installation
composer require emgag/flysystem-tempdir
Usage
As League\Flysystem\Filesystem wrapper:
use Emgag\Flysystem\Tempdir; $fs = new Tempdir($prefix = '', $tempdir = null, $destruct = true); // fully qualified FS path $fsPath = $fs->getPath();
or as Flysystem Adapter:
use Emgag\Flysystem\TempdirAdapter; use League\Flysystem\Filesystem; $adapter = new TempdirAdapter($prefix = '', $tempdir = null, $destruct = true); $filesystem = new Filesystem($adapter); // fully qualified FS path $fsPath = $adapter->getPath();
License
flysystem-tempdir is licensed under the MIT License.
统计信息
- 总下载量: 83.42k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 10
- 点击次数: 1
- 依赖项目数: 5
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2015-05-18