Download the PHP package brandembassy/file-type-detector without Composer
On this page you can find all versions of the php package brandembassy/file-type-detector. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download brandembassy/file-type-detector
More information about brandembassy/file-type-detector
Files in brandembassy/file-type-detector
Download brandembassy/file-type-detector
More information about brandembassy/file-type-detector
Files in brandembassy/file-type-detector
Vendor brandembassy
Package file-type-detector
Short Description Detects file type by filename or content and generates correct mimetype. Forked from https://github.com/wapmorgan/FileTypeDetector
License MIT
Package file-type-detector
Short Description Detects file type by filename or content and generates correct mimetype. Forked from https://github.com/wapmorgan/FileTypeDetector
License MIT
Please rate this library. Is it a good library?
Informations about the package file-type-detector
Project forked from https://github.com/wapmorgan/FileTypeDetector
File Type Detector
Files type detector based on file name extension or file content (binary content).
File Type detection
- Detection by file name:
Detector::detectByFilename(...filename...): array|boolean - Detection by file content or stream content:
Detector::detectByContent(...filename/resource...): array|boolean
Both functions will return an array with following elements in case of success:
[0]- Type of file (Detector::AUDIOand so on)[1]- Format of file (Detector::MP3and so on)[2]- Mime type of file ('audio/mpeg'for example)
In case of failure it will return false.
Example:
Mimetype resolving
To get correct mimetype for file only there is getMimeType($file) function.
Installation
All versions of file-type-detector with dependencies
PHP Build Version
Package Version
The package brandembassy/file-type-detector contains the following files
Loading the files please wait ...