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

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

aedart/athenaeum-mime-types
===========================

Mime-Types

9.25.1(2mo ago)027.7k↓50%11BSD-3-ClausePHPPHP ^8.3

Since Apr 5Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/aedart/athenaeum-mime-types)[ Packagist](https://packagist.org/packages/aedart/athenaeum-mime-types)[ Docs](https://aedart.github.io/athenaeum/)[ RSS](/packages/aedart-athenaeum-mime-types/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (113)Used By (1)

Athenaeum Mime-Types
====================

[](#athenaeum-mime-types)

A "profile" based [MIME-type](https://en.wikipedia.org/wiki/Media_type) detector, which uses a string or a `resource` as sample.

```
use Aedart\MimeTypes\Detector;

$file = fopen('my-picture.jpg', 'rb');

// Detect mime-type by only reading xx-bytes from file...
$mimeType = (new Detector())->detect($file);
fclose($file);

print_r($mimeType);
```

Output example:

```
Aedart\MimeTypes\MimeType Object
(
    [description] => JPEG image data, JFIF standard 1.01, resolution (DPI),...
    [mime] => image/jpeg; charset=binary
    [type] => image/jpeg
    [encoding] => binary
    [known_extensions] => Array
        (
            [0] => jpeg
            [1] => jpg
            [2] => jpe
            [3] => jfif
        )
)

```

Behind the scene, the default profile driver uses PHP's [File Info Extension](https://www.php.net/manual/en/book.fileinfo.php).

Documentation
-------------

[](#documentation)

Please read the [official documentation](https://aedart.github.io/athenaeum/) for additional information.

Repository
----------

[](#repository)

The mono repository is located at [github.com/aedart/athenaeum](https://github.com/aedart/athenaeum)

Versioning
----------

[](#versioning)

This package follows [Semantic Versioning 2.0.0](http://semver.org/)

License
-------

[](#license)

[BSD-3-Clause](http://spdx.org/licenses/BSD-3-Clause), Read the LICENSE file included in this package

###  Health Score

56

—

FairBetter than 98% of packages

Maintenance88

Actively maintained with recent releases

Popularity27

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

 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 ~13 days

Total

112

Last Release

75d ago

Major Versions

6.8.1 → 7.0.02023-02-16

7.33.0 → 8.0.02024-03-18

8.22.0 → 9.0.02025-03-04

PHP version history (5 changes)6.0.0PHP ^8.0.2

7.0.0PHP ^8.1

7.21.0PHP ^8.1.22

8.0.0PHP ^8.2

9.0.0PHP ^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1523223?v=4)[Alin Eugen Deac](/maintainers/aedart)[@aedart](https://github.com/aedart)

---

Top Contributors

[![aedart](https://avatars.githubusercontent.com/u/1523223?v=4)](https://github.com/aedart "aedart (167 commits)")

---

Tags

mime-typeutilitiesAthenaeum

### Embed Badge

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

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

###  Alternatives

[vaimo/composer-patches

Applies a patch from a local or remote file to any package that is part of a given composer project. Patches can be defined both on project and on package level. Optional support for patch versioning, sequencing, custom patch applier configuration and patch command for testing/troubleshooting added patches.

2994.3M16](/packages/vaimo-composer-patches)[lodash-php/lodash-php

A port of Lodash to PHP

527719.0k5](/packages/lodash-php-lodash-php)[kartik-v/yii2-helpers

A collection of useful helper functions for Yii Framework 2.0

883.0M29](/packages/kartik-v-yii2-helpers)

PHPackages © 2026

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