PHPackages                             kohkimakimoto/temporary - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. kohkimakimoto/temporary

ActiveLibrary[File &amp; Storage](/categories/file-storage)

kohkimakimoto/temporary
=======================

A PHP helper class to manipulate a temporary file.

v1.0.1(10y ago)131MITPHPPHP &gt;=5.3.0

Since Jul 28Pushed 10y ago1 watchersCompare

[ Source](https://github.com/kohkimakimoto/Temporary)[ Packagist](https://packagist.org/packages/kohkimakimoto/temporary)[ Docs](https://github.com/kohkimakimoto/temporary)[ RSS](/packages/kohkimakimoto-temporary/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

Temporary
=========

[](#temporary)

[![Build Status](https://camo.githubusercontent.com/361ad7e8f70688a588f7204a76ba1c73868cc765ed020794c62b1793b4cc20f6/68747470733a2f2f7472617669732d63692e6f72672f6b6f686b696d616b696d6f746f2f54656d706f726172792e737667)](https://travis-ci.org/kohkimakimoto/Temporary)[![Latest Stable Version](https://camo.githubusercontent.com/1cb56953b289cc0b403e5eb0df65503c83eaad80fa74ad713d778b4994781436/68747470733a2f2f706f7365722e707567782e6f72672f6b6f686b696d616b696d6f746f2f74656d706f726172792f762f737461626c65)](https://packagist.org/packages/kohkimakimoto/temporary) [![Total Downloads](https://camo.githubusercontent.com/7c0e4cb2e8900253e5cc340b12c6c6bea76a42d5bca9830f2a81d9e42d09d408/68747470733a2f2f706f7365722e707567782e6f72672f6b6f686b696d616b696d6f746f2f74656d706f726172792f646f776e6c6f616473)](https://packagist.org/packages/kohkimakimoto/temporary) [![Latest Unstable Version](https://camo.githubusercontent.com/a9228d0de028fc6b1991a0539c40d5b27edf972295e308fc02d7e30698bef111/68747470733a2f2f706f7365722e707567782e6f72672f6b6f686b696d616b696d6f746f2f74656d706f726172792f762f756e737461626c65)](https://packagist.org/packages/kohkimakimoto/temporary) [![License](https://camo.githubusercontent.com/62a411a9658cf7c36290bd50953f9a150be37221f7daefb5433a41f5d10008bf/68747470733a2f2f706f7365722e707567782e6f72672f6b6f686b696d616b696d6f746f2f74656d706f726172792f6c6963656e7365)](https://packagist.org/packages/kohkimakimoto/temporary)

A PHP helper class to manipulate a temporary file and directory.

temporary file.

```
use Kohkimakimoto\Temporary\TemporaryFile;

$tmpfile = new TemporaryFile();

echo $tmpfile->path();  // ex) /private/var/folders/bt/xwh9qmcj00dctz53_rxclgtr0000gn/T/phpqWK5fj
$tmpfile->write("temporary data...");

echo $data = $tmpfile->read(); // temporary data...

// You don't need to close it. The temporary file will be closed automatically when the object removes.
```

temporary directory.

```
use Kohkimakimoto\Temporary\TemporaryDir;

$tmpdir = new TemporaryDir();
echo $tmpdir->path();   // ex) /private/var/folders/bt/xwh9qmcj00dctz53_rxclgtr0000gn/T/KFHg4L

// You don't need to close it. The temporary dir will be deleted automatically when the object removes.
```

Requirements
------------

[](#requirements)

- PHP5.3 or later

Installation
------------

[](#installation)

Create `composer.json` for installing via composer..

```
{
    "require": {
        "kohkimakimoto/temporary": "1.0.*"
    }
}

```

Run composer install command.

```
composer install

```

Author
------

[](#author)

Kohki Makimoto

License
-------

[](#license)

MIT license.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

3937d ago

Major Versions

v0.1.0 → v1.0.02015-07-29

### Community

Maintainers

![](https://www.gravatar.com/avatar/232e612dbf32e70978372a2249e28dd037f75eadafc547913375708571c65f9a?d=identicon)[kohkimakimoto](/maintainers/kohkimakimoto)

---

Top Contributors

[![kohkimakimoto](https://avatars.githubusercontent.com/u/761462?v=4)](https://github.com/kohkimakimoto "kohkimakimoto (12 commits)")

---

Tags

temporary

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kohkimakimoto-temporary/health.svg)

```
[![Health](https://phpackages.com/badges/kohkimakimoto-temporary/health.svg)](https://phpackages.com/packages/kohkimakimoto-temporary)
```

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[google/cloud-storage

Cloud Storage Client for PHP

34390.8M123](/packages/google-cloud-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M61](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
