use Keboola\Temp\Temp;
$temp = new Temp('prefix');
// Creates a file with unique name suffixed by 'suffix'
$tempFile = $temp->createTmpFile('suffix');
// Creates a file 'filename.json' in the temp folder and keeps it after the class is destroyed
$file = $temp->createFile('filename.json', true);
forked from keboola/php-temp
-
Notifications
You must be signed in to change notification settings - Fork 0
PHP Temp filesystem service
License
540co/php-temp
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
PHP Temp filesystem service
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published
Languages
- PHP 100.0%