toiee/haikr — pull request #107 by big2men (2014-03-05 08:40:49+00:00)
Title: File mime-type resolver

### Overview

This class supplies getting mime-type ways.

#### From Path

When you provide local file path, then you can get mime-type string.
`new MimeTypeResolver()->getTypeByLocation("/path/to/image.png")` => `image/png`

#### From URL

When you provide URL of a file, then you can get mime-type string.
`new MimeTypeResolver()->getTypeByLocation("http://example.com/image.png")` => `image/png`

#### From Content

When you provide raw content data, then you can get mime-type string.
`new MimeTypeResolver()->getTypeByLocation($image_content)` => `image/jpeg`