PHPackages                             libero/media-type - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. libero/media-type

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

libero/media-type
=================

Media Type

v0.1.0(6y ago)0251MITPHPPHP ^7.2

Since Jun 24Pushed 6y ago1 watchersCompare

[ Source](https://github.com/libero/media-type)[ Packagist](https://packagist.org/packages/libero/media-type)[ RSS](/packages/libero-media-type/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (1)Dependencies (8)Versions (3)Used By (0)

PHP Media Type
==============

[](#php-media-type)

[![Build Status](https://camo.githubusercontent.com/b845a3a2d490eedd4d7430eda95662694e6d71777cd5ce19bd4b10479a3d0ab9/68747470733a2f2f7472617669732d63692e636f6d2f6c696265726f2f6d656469612d747970652e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/libero/media-type)

The is a library for parsing and serializing media types based on the [WHATWG MIME Sniffing standard](https://mimesniff.spec.whatwg.org/).

Getting started
---------------

[](#getting-started)

Using [Composer](https://getcomposer.org/) you can install the library into your project:

```
composer require libero/media-type

```

### Basic usage

[](#basic-usage)

```
use Libero\MediaType\MediaType;

$mediaType = MediaType::fromString('text/html; Charset="utf-8"');

$mediaType->getEssence(); // 'text/html'
$mediaType->getParameters(); // ['charset' => 'utf-8']
(string) $mediaType; // 'text/html;charset=utf-8'
```

Getting help
------------

[](#getting-help)

- Report a bug or request a feature on [GitHub](https://github.com/libero/libero/issues/new/choose).
- Ask a question on the [Libero Community Slack](https://libero.pub/join-slack).
- Read the [code of conduct](https://libero.pub/code-of-conduct).

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

2517d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6e6aaeba393e9038b5a5a916e5f4e32ffb349436e3be2027be4828f486bc8c9d?d=identicon)[thewilkybarkid](/maintainers/thewilkybarkid)

---

Top Contributors

[![thewilkybarkid](https://avatars.githubusercontent.com/u/1784740?v=4)](https://github.com/thewilkybarkid "thewilkybarkid (2 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/libero-media-type/health.svg)

```
[![Health](https://phpackages.com/badges/libero-media-type/health.svg)](https://phpackages.com/packages/libero-media-type)
```

###  Alternatives

[vlucas/phpdotenv

Loads environment variables from `.env` to `getenv()`, `$\_ENV` and `$\_SERVER` automagically.

13.5k602.4M5.4k](/packages/vlucas-phpdotenv)[symfony/filesystem

Provides basic utilities for the filesystem

4.6k669.1M3.2k](/packages/symfony-filesystem)[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k234.7M20.6k](/packages/friendsofphp-php-cs-fixer)[danielstjules/stringy

A string manipulation library with multibyte support

2.4k26.0M191](/packages/danielstjules-stringy)[rubix/ml

A high-level machine learning and deep learning library for the PHP language.

2.2k1.4M28](/packages/rubix-ml)[voku/portable-utf8

Portable UTF-8 library - performance optimized (unicode) string functions for php.

52322.4M40](/packages/voku-portable-utf8)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
