\Guzzle\HttpMimetypes

Provides mappings of file extensions to mimetypes

Summary

Methods
Properties
Constants
getInstance()
fromExtension()
fromFilename()
No public properties found
No constants found
No protected methods found
$instance
$mimetypes
N/A
No private methods found
No private properties found
N/A

Properties

$instance

$instance : self

Type

self

$mimetypes

$mimetypes : array

Type

array — Mapping of extension to mimetype

Methods

getInstance()

getInstance() : self

Get a singleton instance of the class

Returns

self

fromExtension()

fromExtension(string  $extension) : string|null

Get a mimetype value from a file extension

Parameters

string $extension

File extension

Returns

string|null

fromFilename()

fromFilename(string  $filename) : string|null

Get a mimetype from a filename

Parameters

string $filename

Filename to generate a mimetype from

Returns

string|null