PHP File Extension Utility Library
This should work with any security supported version of PHP 7.x line
Additional requirements are required for development
lewiscowles\Utils\FileSystem\Extension
fixExtensionIfNeeded (string $originalExtension, string $filename) : string
getExtensionFromFilename (string $filename) : string
hasNoExtension (string $filename) : bool
isExtensionTooShort (string $extension) : bool
isDualPartExtension (string $extension) : bool
isDotFile (string $filename) : bool
This package was created solely for the purpose of facilitating the WordPress SVG plugin. It is my hope that it provides other benefit, but that has not been the case.
If you spot a bug, or have a feature-request or improvement, please create an issue.
Documentation and Tests must be provided for any contribution. If this is a problem due to lack of knowledge or experience; please make an issue and submit a draft PR to ask for help. This should be a small enough library that learning can be helped.
At all times a polite and courteous tone should be used when communicating, contributing or interacting with this repository.