Skip to content

540co/php-temp

 
 

Repository files navigation

Keboola PHP Temp service

Usage

    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);

About

PHP Temp filesystem service

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%