Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/narrowspark/mimetypes

:dart: PHP MIME Types Guesser and extension mapping.
https://github.com/narrowspark/mimetypes

mime mime-db mime-types mimetypes php-mime php72 php73

Last synced: 3 months ago
JSON representation

:dart: PHP MIME Types Guesser and extension mapping.

Awesome Lists containing this project

README

        

MIME Types


PHP MIME Types Guesser and extension mapper.








built with [jshttp/mime-db][1].

Mime types mapping, the right way.
------------
This library uses [jshttp/mime-db][1] 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
------------

```bash
composer require narrowspark/mimetypes
```

Use
------------

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

```php
**Note:** Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

License
---------------

The Narrowspark mimetypes is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

[1]: http://github.com/jshttp/mime-db