jenssegers/agent
👮 A PHP desktop/mobile user agent parser with support for Laravel, based on Mobiledetect observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4771
- days_rel: n/a
- days_push: 758
- n_releases_24m: 0
Adoption not part of the score
4850 stars · 538 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A PHP user agent parser that identifies browsers, operating systems, devices, robots, and accept languages, built on Mobile Detect with added desktop support. It integrates with Laravel via a service provider and facade.
Use cases
- detect mobile devices from user agent strings in PHP
- parse browser and OS from a user agent header
- serve different layouts for phones and tablets
- get the visitor's preferred languages from accept-language headers
- detect bots and crawlers visiting a site
- log device and platform info for analytics in a Laravel app
When to choose
- you need user agent parsing in a PHP or Laravel application
- you want mobile, tablet, and desktop detection in one package
- you need device names, platforms, and browser names from user agent strings
When to avoid
- you need highly accurate, frequently updated user agent detection for modern devices
- you are not working in PHP
- you need client-side browser feature detection rather than user agent sniffing
Facets
library · maturity maintenance
parser nlp web-development developer-tools php user-agent-parsing mobile-detection laravel browser-detection device-detection web-server
5 sources
- readme: https://github.com/jenssegers/agent · fetched 2026-08-28 · cdc9e013868d
- homepage: https://jenssegers.com · fetched 2026-08-29 · f248c41703ca
- site_page: https://jenssegers.com/decoupling-releases-from-deploys-using-feature-flags · fetched 2026-08-29 · a3f5bde70237
- site_page: https://jenssegers.com/speed-up-phpstorm-with-nyan-cat · fetched 2026-08-29 · 07a29de58bf3
- site_page: https://jenssegers.com/laravel-smtp-driver-vs-api-drivers · fetched 2026-08-29 · dbd815356933
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| jenssegers/agent | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="jenssegers/agent")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem