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

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

denisyukphp/tmpfile
===================

Alternative to tmpfile() function.

3.0.12(6mo ago)224.6k↑216.7%1[2 issues](https://github.com/denisyukphp/tmpfile/issues)1MITPHPPHP ^8.0CI failing

Since Jan 23Pushed 6mo ago2 watchersCompare

[ Source](https://github.com/denisyukphp/tmpfile)[ Packagist](https://packagist.org/packages/denisyukphp/tmpfile)[ RSS](/packages/denisyukphp-tmpfile/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (10)Dependencies (7)Versions (31)Used By (1)

TmpFile
=======

[](#tmpfile)

[![Build Status](https://camo.githubusercontent.com/6c4bce84c50f0e355595bec11f525a22ecee47ce69acb1316b5c3bbb8e92c30d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f64656e697379756b7068702f746d7066696c652f63692e796d6c3f6272616e63683d6d6173746572267374796c653d706c6173746963)](https://github.com/denisyukphp/tmpfile/actions/workflows/ci.yml)[![Latest Stable Version](https://camo.githubusercontent.com/bdea57bae2aad0989a975033cfb9bfa797f94cfe061b7d05f5e760c62d6ef739/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64656e697379756b7068702f746d7066696c653f7374796c653d706c6173746963)](https://packagist.org/packages/denisyukphp/tmpfile)[![Packagist PHP Version Support](https://camo.githubusercontent.com/618eaeff0f027d3bee0c47a0532bcbc521a5bb560a440ebb05a39260e457e941/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f64656e697379756b7068702f746d7066696c653f7374796c653d706c617374696326636f6c6f723d383839324246)](https://packagist.org/packages/denisyukphp/tmpfile)[![Total Downloads](https://camo.githubusercontent.com/5b5004c876de4269548e27ab3e980badbd7002225ca1c36bbebfcd7d0fef48b8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64656e697379756b7068702f746d7066696c653f7374796c653d706c6173746963)](https://packagist.org/packages/denisyukphp/tmpfile)[![License](https://camo.githubusercontent.com/db68cf370572e402df38ba472ed6a6312c8b992dbe4e0aa72bdc9423b4f38fc0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f64656e697379756b7068702f746d7066696c653f7374796c653d706c617374696326636f6c6f723d343238463745)](https://packagist.org/packages/denisyukphp/tmpfile)

Alternative to tmpfile() function.

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

[](#installation)

You can install the latest version via [Composer](https://getcomposer.org/):

```
composer require denisyukphp/tmpfile

```

This package requires PHP 8.0 or later.

Quick usage
-----------

[](#quick-usage)

A temp file will be removed after PHP finished:

```
