PHPackages                             apxcde/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. apxcde/mime-types

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

apxcde/mime-types
=================

A converter between mime types and file extensions.

v1.0.0(2y ago)02.8kMITPHP

Since May 31Pushed 2y agoCompare

[ Source](https://github.com/apxcde/mime-types)[ Packagist](https://packagist.org/packages/apxcde/mime-types)[ RSS](/packages/apxcde-mime-types/feed)WikiDiscussions main Synced 2w 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 apxcde/mime-types
```

Usage
-----

[](#usage)

Create a new mime type converter instance:

```
use Apxcde\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

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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

Unknown

Total

1

Last Release

810d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/110383893?v=4)[ApexCode](/maintainers/apxcde)[@apxcde](https://github.com/apxcde)

---

Top Contributors

[![mwamodo](https://avatars.githubusercontent.com/u/52991058?v=4)](https://github.com/mwamodo "mwamodo (1 commits)")

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/apxcde-mime-types/health.svg)

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

###  Alternatives

[khaled.alshamaa/ar-php

Set of functionalities enable Arabic website developers to serve professional search, present and process Arabic content in PHP

3393.0M42](/packages/khaledalshamaa-ar-php)[kigkonsult/icalcreator

iCalcreator is the PHP implementation of rfc2445/rfc5545 and rfc updates, management of calendar information

2472.9M23](/packages/kigkonsult-icalcreator)[kunststube/rison

A PHP encoder and decoder for Rison, the compact JSON-like data format optimized for URIs.

2470.3k3](/packages/kunststube-rison)[genealabs/laravel-tawk

Integrate Tawk.to into yoru Laravel and Nova apps.

111.3k](/packages/genealabs-laravel-tawk)

PHPackages © 2026

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