PHPackages                             dmromanov/cakephp-tmpfile - 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. dmromanov/cakephp-tmpfile

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

dmromanov/cakephp-tmpfile
=========================

Temporary file plugin for CakePHP.

1.1.0(4y ago)1140MITPHPPHP &gt;= 5.6

Since Nov 18Pushed 4y ago1 watchersCompare

[ Source](https://github.com/dmromanov/cakephp-tmpfile)[ Packagist](https://packagist.org/packages/dmromanov/cakephp-tmpfile)[ RSS](/packages/dmromanov-cakephp-tmpfile/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

TmpFile plugin for CakePHP
==========================

[](#tmpfile-plugin-for-cakephp)

[![Latest Stable Version](https://camo.githubusercontent.com/dfe123e59f77f55be605dd8dc2bdec78133710244723853c0b467944ff3a77c4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646d726f6d616e6f762f63616b657068702d746d7066696c652e7376673f7374796c653d666c6174)](https://packagist.org/packages/dmromanov/cakephp-tmpfile)[![Minimum PHP Version](https://camo.githubusercontent.com/9104d4815ca26c20fb814da03a49fbfc1c230dbb45b36016f81d5d0e181c8494/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230372e302d3838393242462e7376673f7374796c653d666c6174)](https://php.net/)[![Build Status](https://camo.githubusercontent.com/e626d9e599512b6ec24cce75eaf9d7dab9f8f228f62497d405cdcbd7cd388ab3/68747470733a2f2f7472617669732d63692e6f72672f646d726f6d616e6f762f63616b657068702d746d7066696c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/dmromanov/cakephp-tmpfile)[![codecov](https://camo.githubusercontent.com/bff7d1750d2becd7315b9b16fa83f276843f4c6978c31b511f948ce271e4052c/68747470733a2f2f636f6465636f762e696f2f67682f646d726f6d616e6f762f63616b657068702d746d7066696c652f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/dmromanov/cakephp-tmpfile)

This plugins provides class for creating temporary files, that are guaranteed to be deleted after program termination, and is compatible with `CakePHP\Filesystem\File` API.

Usage
-----

[](#usage)

Create unique temporary files:

```
$tmpFile1 = new TmpFile();
$tmpFile2 = new TmpFile(
    'foo-',
    TMP . 'bar',
    0644
)
$tmpFile2->close();

// use as a regular CakePHP\Filesystem\File
$tmpfile->open()
$tmpfile->write($data);
$tmpfile->close();
```

After a program termination (regular or after a crash) the file will be deleted.

Constructor's parameters:

```
string $prefix The prefix of the generated temporary filename.
string $path The directory where the temporary filename will be created
int $mode File permissions

```

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

[](#installation)

You can install this plugin into your CakePHP application using [composer](http://getcomposer.org).

The recommended way to install composer packages is:

```
composer require dmromanov/cakephp-tmpfile

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 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 ~1056 days

Total

2

Last Release

1678d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3cdd6544a656ba3736fc9bed49ca6cd3450b9e2cfaa869b438ec6f38ee760254?d=identicon)[dmromanov](/maintainers/dmromanov)

---

Top Contributors

[![dmromanov](https://avatars.githubusercontent.com/u/299059?v=4)](https://github.com/dmromanov "dmromanov (3 commits)")

---

Tags

cakephpcakephp-plugincakephp3

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dmromanov-cakephp-tmpfile/health.svg)

```
[![Health](https://phpackages.com/badges/dmromanov-cakephp-tmpfile/health.svg)](https://phpackages.com/packages/dmromanov-cakephp-tmpfile)
```

###  Alternatives

[wyrihaximus/fly-pie

Flysystem integration plugin for CakePHP 5

38297.8k](/packages/wyrihaximus-fly-pie)[dereuromark/cakephp-file-storage

This plugin is giving you the possibility to store files in virtually any kind of storage backend. This plugin is wrapping the Gaufrette library (https://github.com/KnpLabs/Gaufrette) library in a CakePHP fashion and provides a simple way to use the storage adapters through the StorageManager class.

104.1k](/packages/dereuromark-cakephp-file-storage)

PHPackages © 2026

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