Skip to content

bermudaphp/detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Install

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;