alex-kalanis/kw_mime

Determine file mime type in KWCMS

v3.0.0 2024-03-31 14:30 UTC

This package is auto-updated.

Last update: 2024-12-01 00:07:39 UTC


README

Build Status Scrutinizer Code Quality Latest Stable Version Minimum PHP Version Downloads License Code Coverage

Simple library to access mime type of sent file. Just makes nice facade to mime libraries.

PHP Installation

composer.phar require alex-kalanis/kw_mime

(Refer to Composer Documentation if you are not familiar with composer)

PHP Usage

1.) Use your autoloader (if not already done via Composer autoloader)

2.) Connect the "\kalanis\kw_mime\MimeType" into your app. Extends it for setting your case.

3.) Just call setting and render

Caveats

If not speified by time of construction it uses external libraries in extension ext-fileinfo. Be aware of that.