\GuzzleHttp\Psr7MimeType

Summary

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

Methods

fromFilename()

fromFilename(string  $filename) : string|null

Determines the mimetype of a file by looking at its extension.

Parameters

string $filename

Returns

string|null —

fromExtension()

fromExtension(string  $extension) : string|null

Maps a file extensions to a mimetype.

Parameters

string $extension

string The file extension.

Returns

string|null —