Releases: phpdevcommunity/php-filesystem
Releases · phpdevcommunity/php-filesystem
Fix custom filename for tmp file
1.0.4 fix custom filename for tmp file
add filename argument to create tmp file
1.0.3 add filename argument to create tmp file
add support for creating a temporary file with a custom name
- The
createTempFile
method now allows specifying a custom filename. - If no name is provided, a temporary file is created with the prefix 'tmp_' in the system's temporary directory.
- If a name is provided, the file is created in the temporary directory with the specified name if it does not already exist.
Added MimeType utility class
- Implemented getMimeTypeByExtension() to retrieve MIME type based on file extension.
- Added getExtensionByMimeType() for reverse lookup of file extension from MIME type.
First stable release of file utility library
- Implemented stable versions of FileInfo, FileSynchronizer, FileExplorer, and FileSplitter classes.
- Added comprehensive unit tests for all core functionalities.