A converter between mime types and file extensions.
Converts mime types to the proper file extensions and vice versa.
composer require magyarjeti/mime-types
Create a new mime type converter instance:
use Magyarjeti\MimeTypes\MimeTypeConverter; $converter = new MimeTypeConverter;
Get the proper mime type for a file extension:
or find a file extension to the given mime type:
Multiple extensions could belong to the same mime type so the code above will return with the first matching one.
Create the Docker based development environment:
Check the coding style and run unit tests: