Registry / utility / whichbrowser-parser

whichbrowser-parser

JSON →
library2.1.8phppackagistunverified

Useragent sniffing library for PHP.

utilityother
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

use WhichBrowser\Parser;

Parses a user agent string to identify browser, device, and OS.

use WhichBrowser\Parser; $result = new Parser(getallheaders()['User-Agent']); echo $result->browser->name;
Debug
Known footguns
gotchaThe library may misidentify newer browsers if not updated regularly.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
31 hits · last 30 days
gptbot
3
amazonbot
3
claudebot
3
mj12bot
2
petalbot
2
ahrefsbot
1
Resources