MimeType
class MimeType (View source)
Methods
                    static MimeTypesInterface
                
                
                    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 mimes.
                    static string|null
                
                
                    search(string $mimeType)
        
                                            
                
            Search for the extension of a given MIME type.
Details
        
                static            MimeTypesInterface
    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 mimes.
        
                static            string|null
    search(string $mimeType)
        
    
    Search for the extension of a given MIME type.