# WhichBrowser/Parser-PHP

Browser sniffing gone too far — A useragent parser library for PHP

Repository: https://github.com/WhichBrowser/Parser-PHP
Canonical: https://ross.abutalabs.com/products/parser-php
Homepage: http://whichbrowser.net
Language: PHP
License: MIT
License Family: permissive
Topics: php, whichbrowser, user-agent, library
Last push: 2024-05-19T10:06:29+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4814, "days_push": 836, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1840, forks 238 (observed 2026-08-28T04:05:43.001554+00:00)

## What it is
WhichBrowser/Parser-PHP is a PHP library that parses user agent strings to identify the browser, rendering engine, operating system, and device (including manufacturer and model). It is designed to be extremely thorough, handling user agents where browsers lie about their identity.

## Use cases
- parse user agent strings in PHP
- detect browser name and version from user agent
- identify operating system and device model from requests
- gather analytics about which browsers visit a website
- detect mobile devices for adaptive content delivery

## When to choose
- you need detailed browser, engine, OS, and device info from user agents in PHP
- other parsers fail on obscure or deceptive user agent strings
- you want device manufacturer and model detection

## When to avoid
- you should use feature detection instead of browser sniffing for client-side behavior
- your project is not PHP-based
- you need actively developed cutting-edge support for the newest browsers

## Facets
- artifact type: library
- maturity: maintenance
- function: parser
- domain: web-development, developer-tools
- platform: php
- tags: user-agent-parsing, browser-sniffing, device-detection

## Member repositories
- WhichBrowser/Parser-PHP (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:43.001554+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:18:03.224518+00:00, confidence not recorded.
  - readme: https://github.com/WhichBrowser/Parser-PHP (fetched 2026-08-28T04:05:43.001554+00:00, sha 3060b6c8765c)
  - homepage: http://whichbrowser.net (fetched 2026-08-29T10:57:09.514517+00:00, sha 1d24f0f06699)
- Data as of 2026-08-30T08:39:29.467469+00:00.
