makasim / temp-file
Temp file object
Installs: 2 910 394
Dependents: 9
Suggesters: 0
Security: 0
Stars: 29
Watchers: 3
Forks: 3
Open Issues: 0
Requires
- php: >=5.3.2
This package is auto-updated.
Last update: 2024-11-06 23:47:59 UTC
README
TempFile extends SplFileInfo class. It represents temporary file which will be removed at script shutdown.
Examples:
<?php //generate $file = \Makasim\File\TempFile::generate(); //or create a temporary copy of persisted file $file = \Makasim\File\TempFile::from('path_to_persisted_file'); //prevent file being removed $file = \Makasim\File\TempFile::generate(); $file->persist();