MimeType
class MimeType
Methods
static MimeTypes
getMimeTypes()
Get the MIME types instance.
static string
from(string $filename)
Get the MIME type for a file based on the file's extension.
static string
get(string $extension)
Get the MIME type for a given extension or return all MIME types.
static string|null
search(string $mimeType)
Search for the extension of a given MIME type.
Details
at line 19
static MimeTypes
getMimeTypes()
Get the MIME types instance.
at line 31
static string
from(string $filename)
Get the MIME type for a file based on the file's extension.
at line 41
static string
get(string $extension)
Get the MIME type for a given extension or return all MIME types.
at line 49
static string|null
search(string $mimeType)
Search for the extension of a given MIME type.