matomo-org/device-detector
The Universal Device Detection library will parse any User Agent and detect the browser, operating system, device used (desktop, tablet, mobile, tv, cars, console, etc.), brand and model. observed · 2026-08-28
Health v2 · maintenance only
90/100
- Activity 99
- Release rhythm 74
- Longevity 100
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: 62.5
- age_days: 4536
- days_rel: 98
- days_push: 9
- n_releases_24m: 11
Adoption not part of the score
3519 stars · 509 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A PHP library that parses User Agents and Client Hints to detect the device type, browser, operating system, brand, and model, as well as bots. It is the detection engine used by Matomo Analytics.
Use cases
- detect mobile devices from user agent strings
- identify browsers and operating systems from user agents
- detect bots and crawlers in access logs
- get device brand and model from client hints
- classify traffic as desktop, tablet, mobile, or tv
- parse user agents in a PHP application
When to choose
- you need accurate, regularly updated user agent parsing in PHP
- you want bot detection alongside device detection
- you need brand/model-level device identification
When to avoid
- your stack is not PHP
- you only need simple mobile vs desktop checks and want a tiny dependency
- you need client-side device feature detection rather than user agent parsing
Facets
library · maturity active
parser nlp developer-tools web-development analytics php user-agent-parsing device-detection bot-detection client-hints
2 sources
- readme: https://github.com/matomo-org/device-detector · fetched 2026-08-28 · 6ef9ccb380d2
- homepage: http://devicedetector.net · fetched 2026-08-29 · 84d8885eb28b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| matomo-org/device-detector | main | 90 |
For agents
markdown · JSON · MCP: product_card(name="matomo-org/device-detector")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem