Download the PHP package axy/mime without Composer
On this page you can find all versions of the php package axy/mime. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor axy
Package mime
Short Description Mime-type matching
License MIT
Homepage https://github.com/axypro/mime
Package mime
Short Description Mime-type matching
License MIT
Homepage https://github.com/axypro/mime
Keywords mime
Please rate this library. Is it a good library?
Informations about the package mime
axy\mime
Mime-type matching.
- The library does not require any dependencies.
- Install:
composer require axy/mime
. - License: MIT.
For PHP 5.4+ support see branch php54
in this repo or version 0.x of the composer package.
Documentation
Mime-type has the follow format: type/subtype
.
For example: image/png
.
It is can be case-insensitive: Image/PNG
.
Pattern can be in the follow formats:
image/png
image/png,image/jpeg, image/gif
- a list of allowed types (comma-separated)image/*
- all subtype of a typeimage/*,text/plain
- a list contains a mask
Matching
Type and pattern can be strings or MimeType and MimePattern instances.
MimeType
class
The class has the constants list for common types:
APPLICATION
, AUDIO
, EXAMPLE
, IMAGE
, MESSAGE
, MODEL
, MULTIPART
, TEXT
and VIDEO
.
Matching:
MimePattern
class
All versions of mime with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1.0
The package axy/mime contains the following files
Loading the files please wait ....