Ross ROSS = Recommend OSS · open-source software intelligence for agents

thephpleague/mime-type-detection

League Mime Type Detection observed · 2026-08-28

github.com/thephpleague/mime-type-detection · homepage · PHP · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

73/100

  • Activity 91
  • Release rhythm 35
  • Longevity 100

Flags: no_releases

How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 2380
  • days_rel: n/a
  • days_push: 55
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

1339 stars · 29 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A PHP library providing a generic MIME type detection interface with a finfo-based implementation and extension fallback. It is the MIME detection component used by the Flysystem file storage abstraction.

Use cases

  • detect the mime type of a file in php
  • get mime type from file contents
  • look up mime types by file extension
  • validate uploaded file types in php
  • determine content type for http responses

When to choose

  • you need reliable MIME detection in a PHP project
  • you use Flysystem and need its MIME detection dependency
  • you want to detect types from contents with extension fallback

When to avoid

  • you need deep file format inspection beyond MIME types
  • you are not working in PHP

Facets

library · maturity stable

file-system developer-tools files developer-tools php cross-platform mime-type file-detection flysystem php-library

3 sources

Member repositories

RepositoryRoleHealth v2
thephpleague/mime-type-detectionmain73

For agents

markdown · JSON · MCP: product_card(name="thephpleague/mime-type-detection")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem