PHPackages                             narrowspark/mimetypes - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. narrowspark/mimetypes

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

narrowspark/mimetypes
=====================

PHP MIME Types Guesser and extension mapping.

1.6.0(6y ago)6116.4k↑6407.1%1[1 issues](https://github.com/narrowspark/mimetypes/issues)[3 PRs](https://github.com/narrowspark/mimetypes/pulls)MITPHPPHP ^7.2

Since Sep 8Pushed 4y ago1 watchersCompare

[ Source](https://github.com/narrowspark/mimetypes)[ Packagist](https://packagist.org/packages/narrowspark/mimetypes)[ RSS](/packages/narrowspark-mimetypes/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (3)Versions (20)Used By (0)

MIME Types
----------

[](#mime-types)

### PHP MIME Types Guesser and extension mapper.

[](#php-mime-types-guesser-and-extension-mapper)

 [![](https://camo.githubusercontent.com/8f386fd1da2aeab71f17d04fc513aa1e97cae0af25deaa9c91eacba63a1ee4d1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6172726f77737061726b2f6d696d6574797065732e7376673f7374796c653d666c61742d737175617265)](https://github.com/narrowspark/mimetypes/releases) [![](https://camo.githubusercontent.com/e243dd412fc99473435d040a0afcf80ae870af909aa4a9bfc418e03224cf8115/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545372e322e302d3838393242462e7376673f7374796c653d666c61742d737175617265)](https://php.net/) [![](https://camo.githubusercontent.com/4461d0e7795fa24b9a0c525212b304ed7acdf1bd8e7150dcf0296744af782ee1/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f727573742d6c616e672f727573742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/narrowspark/mimetypes) [![](https://camo.githubusercontent.com/6fbc941ed14c5fcadb5d475d915878986ac65bbe8024a2c0e645e15c2fc3b4a5/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f6e6172726f77737061726b2f6d696d6574797065732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://codecov.io/gh/narrowspark/mimetypes) [![](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](http://opensource.org/licenses/MIT)

built with [jshttp/mime-db](http://github.com/jshttp/mime-db).

Mime types mapping, the right way.
----------------------------------

[](#mime-types-mapping-the-right-way)

This library uses [jshttp/mime-db](http://github.com/jshttp/mime-db) as its default mapping which aggregates data from multiple sources and creates a single `db.json` making it the most complete mapping.

- [IANA](http://www.iana.org/assignments/media-types/media-types.xhtml)
- [Apache](http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types)
- [Nginx](http://hg.nginx.org/nginx/file/tip/conf/mime.types)

Installation
------------

[](#installation)

```
composer require narrowspark/mimetypes
```

Use
---

[](#use)

This mime type guesser has support for all OS supported guesser.

```
