green-spot/mime-type

v1.0.1 2024-02-12 09:08 UTC

This package is auto-updated.

Last update: 2025-03-12 11:40:29 UTC


README

$ composer require green-spot/mime-type
use GreenSpot\Utils\MimeType;

MimeType::get("photo.jpg");
// => image/jpeg

MimeType::get("jpg");
// => image/jpeg

MimeType::toExtension("image/jpeg");
// => jpg