PHPackages                             wapmorgan/file-type-detector - 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. wapmorgan/file-type-detector

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

wapmorgan/file-type-detector
============================

Detects file type by filename or content and generates correct mimetype.

1.1.2(9y ago)35367.8k↓17.1%[3 PRs](https://github.com/wapmorgan/FileTypeDetector/pulls)2MIT

Since Jan 9Compare

[ Source](https://github.com/wapmorgan/FileTypeDetector)[ Packagist](https://packagist.org/packages/wapmorgan/file-type-detector)[ RSS](/packages/wapmorgan-file-type-detector/feed)WikiDiscussions Synced 1mo ago

READMEChangelogDependencies (1)Versions (10)Used By (2)

### README not available

The README for this package hasn't been synced yet. View it on [GitHub](https://github.com/wapmorgan/FileTypeDetector).

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity43

Moderate usage in the ecosystem

Community6

Small or concentrated contributor base

Maturity69

Established project with proven stability

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

Total

9

Last Release

3293d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6000618?v=4)[Sergey](/maintainers/wapmorgan)[@wapmorgan](https://github.com/wapmorgan)

---

Tags

filesmimetypeformatsfiletype

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/wapmorgan-file-type-detector/health.svg)

```
[![Health](https://phpackages.com/badges/wapmorgan-file-type-detector/health.svg)](https://phpackages.com/packages/wapmorgan-file-type-detector)
```

###  Alternatives

[lorisleiva/lody

Load files and classes as lazy collections in Laravel.

956.6M9](/packages/lorisleiva-lody)[dfridrich/php-mime-type

Simple PHP class for guessing file mime type based on file extension with ability to use in Symfony project.

17274.8k3](/packages/dfridrich-php-mime-type)[colinodell/indentation

Library to detect and manipulate indentation in strings and files

3911.5k5](/packages/colinodell-indentation)

PHPackages © 2026

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