mimey
mimey copied to clipboard
PHP package for converting file extensions to MIME types and vice versa.
add php8 supporting
# Code ```php (new \Mimey\MimeTypes())->getMimeType('zip'); ``` # Expected result ``` 'application/zip' ``` # Actual result ``` 'application/x-gzip' ``` This wrong mime type means that e.g. Firefox and Chrome handle the...
Hello! How about php8 support? My lib has dependency of yours ralouphie/mimey ;)
https://mimetype.io/image/heic Heavily used in Apple iPhones
- Added php 8 support - Added PHPUnit 9.5 - php-coveralls
(first git contribution. Sorry if I did it wrong.) I did NOT use the build script or test it. Added everything by hand. In mime.type I uncommented the #text/markdown line...
# Changed log - Add `php-7.4` version support.
### Code ```php use Mimey\MimeTypes; $mimes = new MimeTypes(); $extension = $mimes->getExtension('audio/mp3'); echo $extension; ``` ### Expected ``` mp3 ``` ### Output ``` null ```