\League\MimeTypeDetectionMimeTypeDetector

Summary

Methods
Constants
detectMimeType()
detectMimeTypeFromBuffer()
detectMimeTypeFromPath()
detectMimeTypeFromFile()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

detectMimeType()

detectMimeType(string  $path, string|resource  $contents) : ?string

Parameters

string $path
string|resource $contents

Returns

?string —

detectMimeTypeFromBuffer()

detectMimeTypeFromBuffer(string  $contents) : ?string

Parameters

string $contents

Returns

?string —

detectMimeTypeFromPath()

detectMimeTypeFromPath(string  $path) : ?string

Parameters

string $path

Returns

?string —

detectMimeTypeFromFile()

detectMimeTypeFromFile(string  $path) : ?string

Parameters

string $path

Returns

?string —