bermudaphp/detector

v1.0.5 2023-04-02 12:25 UTC

This package is auto-updated.

Last update: 2024-03-10 20:14:35 UTC


README

composer require bermudaphp/detector

Usage

$detector = new FinfoDetector;

$detector->detectMimeType(file_get_contents('index.html')) // text/html;
$detector->detectExtension(file_get_contents('index.html')) // html;

$detector->detectFileMimeType('index.html') // text/html;
$detector->detectFileExtension('index.html') // html;