Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/narrowspark/mimetypes
- Owner: narrowspark
- License: mit
- Archived: true
- Created: 2017-09-01T14:24:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-06-26T09:04:15.000Z (over 2 years ago)
- Last Synced: 2024-09-25T20:03:56.006Z (4 months ago)
- Topics: mime, mime-db, mime-types, mimetypes, php-mime, php72, php73
- Language: PHP
- Homepage:
- Size: 628 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
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