davidpersson/temporary
Composer 安装命令:
composer require davidpersson/temporary
包简介
Small PHP utility class to manage temporary files.
README 文档
README
Temporary -- Small utility class to manage temporary files. Synopsis -------- n/a Usage ----- <?php require '/path/to/temporary/bootstrap.php'; use temporary\Manager as Temporary; // Note: directory paths dependent on your // system's default temporary directory. Temporary::file(); // returns /tmp/5228875718a8c Temporary::file(['context' => 'transcode']); // returns /tmp/transcode_522886bf315ca Temporary::file(['context' => 'transcode', 'extension' => 'mp4']); // returns /tmp/transcode_52288708bb5c6.mp4 Temporary::file(['clean' => false]); // returns /tmp/522887b919ca6 // After shutdown the class will automatically cleanup any files // that have been created without the clean option set to `false`. ?> Copyright & License ------------------- Temporary is Copyright (c) 2013 David Persson if not otherwise stated. The code is distributed under the terms of the BSD 3-clause License. For the full license text see the LICENSE file.
统计信息
- 总下载量: 2.88k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2014-04-02