mmeyer2k/temper

Intelligent PHP temporary files.

Installs: 5 879

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 0

Open Issues: 0

pkg:composer/mmeyer2k/temper

dev-master 2016-08-03 03:19 UTC

This package is auto-updated.

Last update: 2025-09-29 01:44:58 UTC


README

Build Status

Fast and intuitive temp file creation.

# Create a temp file instance
$temp = new \Temper\Temper('content to store in temp file');

# Return path to temp file (outputs something like "/tmp/[random file name]")
echo $temp->path();

# Return the temp file size in bytes
$size = $temp->size();

# Delete the temp file when you are done with it
$temp->destroy();

Thats all there is to it.