mmeyer2k / temper
智能PHP临时文件。
dev-master
2016-08-03 03:19 UTC
Requires
- php: >=5.3.0
This package is auto-updated.
Last update: 2024-08-29 03:53:35 UTC
README
快速直观的创建临时文件。
# 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();
这就全部了。