定制 davidpersson/temporary 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2014-04-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固