mmeyer2k / temper

:fire: Fast and intuitive temp file creation and destruction

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

temper

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.

About

:fire: Fast and intuitive temp file creation and destruction

License:MIT License


Languages

Language:PHP 100.0%