PHPackages                             danielmarschall/fileformats - 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. danielmarschall/fileformats

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

danielmarschall/fileformats
===========================

File format detection in PHP

1349PHP

Since Apr 21Pushed 2y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

File Format detection in PHP
============================

[](#file-format-detection-in-php)

This small class in PHP has following functionalities:

- Get MIME Type from a filename (useful if your system does not support mime\_content\_type)
- Get a name/description of a given file or filename

The project contains a small lookup-table for file type names in English.

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/e3a3ef0452f1d6ecc846289b368b332f61897b6381e947a3635e733be23f6f54?d=identicon)[danielmarschall](/maintainers/danielmarschall)

---

Top Contributors

[![danielmarschall](https://avatars.githubusercontent.com/u/28412477?v=4)](https://github.com/danielmarschall "danielmarschall (13 commits)")

### Embed Badge

![Health badge](/badges/danielmarschall-fileformats/health.svg)

```
[![Health](https://phpackages.com/badges/danielmarschall-fileformats/health.svg)](https://phpackages.com/packages/danielmarschall-fileformats)
```

PHPackages © 2026

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