PHPackages                             devnullius/php-tmp-file - 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. devnullius/php-tmp-file

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

devnullius/php-tmp-file
=======================

A convenience class for temporary files

v1.0.5(6y ago)019MITPHPPHP &gt;=7.1.0CI failing

Since Sep 14Pushed 6y ago1 watchersCompare

[ Source](https://github.com/devnullius/php-tmp-file)[ Packagist](https://packagist.org/packages/devnullius/php-tmp-file)[ RSS](/packages/devnullius-php-tmp-file/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (1)Versions (7)Used By (0)

php-tmp-file
============

[](#php-tmp-file)

[![Latest Stable Version](https://camo.githubusercontent.com/e672f40fb5b607a5e2af0077d985812e77b554e2d97df301e0fd06aff085a9b9/68747470733a2f2f706f7365722e707567782e6f72672f6465766e756c6c6975732f7068702d746d702d66696c652f762f737461626c65)](https://packagist.org/packages/devnullius/php-tmp-file)[![License](https://camo.githubusercontent.com/a121877ec158b5fd9f268867a7afd1597684bf1c2e1954a9099e46c260405a03/68747470733a2f2f706f7365722e707567782e6f72672f6465766e756c6c6975732f7068702d746d702d66696c652f6c6963656e7365)](https://packagist.org/packages/devnullius/php-tmp-file)[![Daily Downloads](https://camo.githubusercontent.com/fb3f3d7f4f10bc2b4c8ab8e4776baac02a6ceb89aafdc18015996cde1f93367b/68747470733a2f2f706f7365722e707567782e6f72672f6465766e756c6c6975732f7068702d746d702d66696c652f642f6461696c79)](https://packagist.org/packages/devnullius/php-tmp-file)

A convenience class for temporary files.

Features
--------

[](#features)

- Create temporary file with arbitrary content
- Delete file after use (can be disabled)
- Send file to client, either inline or with save dialog
- Save file locally
- Inject callback with custom file sender

Examples
--------

[](#examples)

```
