README

Requirements

Installation

Usage

<?php// Instantiate the Analyzer$analyzer=newDflydev\Canal\Analyzer\Analyzer;// Detect a media type from a filename (file does not need to exist)$internetMediaType=$analyzer->detectFromFilename('/path/to/whatever.png');// See the media type as a stringprint$internetMediaType->asString()."\n\n";// See the media type's typeprint$internetMediaType->getType()."\n\n";// See the media type's subtypeprint$internetMediaType->getSubtype()."\n\n";// image/png//// image//// png