PHPackages                             codeinc/temp-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. codeinc/temp-file

AbandonedArchivedLibrary

codeinc/temp-file
=================

A simple PHP 7 class to manage temporary files

1.0.0(7y ago)07MITPHPPHP &gt;=7.1

Since Aug 30Pushed 7y ago1 watchersCompare

[ Source](https://github.com/CodeIncHQ/TempFile)[ Packagist](https://packagist.org/packages/codeinc/temp-file)[ Docs](https://github.com/CodeIncHQ/TempFile)[ RSS](/packages/codeinc-temp-file/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

Temp file
=========

[](#temp-file)

[`TempFile`](src/TempFile.php) is a simple PHP class to manage temporary files. The temporary file is created using [`tempnam()`](http://php.net/manual/function.tempnam.php). It self-destructs when the class is destructed. By default the file is created in the system temp directory obtained using [`sys_get_temp_dir()`](http://php.net/manual/function.sys-get-temp-dir.php).

Usage
-----

[](#usage)

```
