derhasi/tempdirectory
最新稳定版本:0.1.5
Composer 安装命令:
composer require derhasi/tempdirectory
包简介
Provides a representation of a temp directory that will destroy itself.
README 文档
README
Provides a temporary directory object, that will kill remove the whole directory on destruction or shutdown.
Installation
Simpyl require with composer: composer require --dev derhasi/tempdirectory.
Usage
Example from composer-preserver-paths:
$workingDirectory = new TempDirectory('path-preserver-test-working'); // Create directory to test. $folder1 = $this->workingDirectory->getPath('folder1'); mkdir($folder1); $file1 = $this->workingDirectory->getPath('file1.txt'); file_put_contents($file1, 'Test content');
统计信息
- 总下载量: 2.61k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 5
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2014-12-29