PHPackages                             felipe-marques-aloware/mime-types - 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. felipe-marques-aloware/mime-types

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

felipe-marques-aloware/mime-types
=================================

A converter between mime types and file extensions.

v1.0.0(2y ago)043.0k↑34.2%MITPHP

Since Apr 9Pushed 2y ago1 watchersCompare

[ Source](https://github.com/felipe-marques-aloware/mime-types)[ Packagist](https://packagist.org/packages/felipe-marques-aloware/mime-types)[ RSS](/packages/felipe-marques-aloware-mime-types/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Mime Types
==========

[](#mime-types)

Converts mime types to the proper file extensions and vice versa.

Installation
------------

[](#installation)

```
composer require felipe-marques-aloware/mime-types
```

Usage
-----

[](#usage)

Create a new mime type converter instance:

```
use Magyarjeti\MimeTypes\MimeTypeConverter;

$converter = new MimeTypeConverter;
```

Get the proper mime type for a file extension:

```
echo $converter->toMimeType('jpeg');
```

or find a file extension to the given mime type:

```
echo $converter->toExtension('image/jpeg');
```

Multiple extensions could belong to the same mime type so the code above will return with the first matching one.

Development
-----------

[](#development)

Create the Docker based development environment:

```
make dev
```

Check the coding style and run unit tests:

```
make test
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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

Unknown

Total

1

Last Release

769d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1a25d10e5187f44469e886fab4f60c0394fba0d2a76d620f916668b4dc5abf1f?d=identicon)[felipe-marques-aloware](/maintainers/felipe-marques-aloware)

---

Top Contributors

[![felipemarques](https://avatars.githubusercontent.com/u/2640656?v=4)](https://github.com/felipemarques "felipemarques (2 commits)")[![felipe-marques-aloware](https://avatars.githubusercontent.com/u/156846941?v=4)](https://github.com/felipe-marques-aloware "felipe-marques-aloware (1 commits)")

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/felipe-marques-aloware-mime-types/health.svg)

```
[![Health](https://phpackages.com/badges/felipe-marques-aloware-mime-types/health.svg)](https://phpackages.com/packages/felipe-marques-aloware-mime-types)
```

###  Alternatives

[htmlburger/carbon-fields-plugin

WordPress plugin loader for Carbon Fields.

1750.5k2](/packages/htmlburger-carbon-fields-plugin)

PHPackages © 2026

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