Registry / utility / whichbrowser-parser

whichbrowser-parser

JSON →
library2.1.8phppackagistunverified

Useragent sniffing library for PHP.

composer require whichbrowser/parser
INSTALL
IMPORT
SIG · WHICHBROWSER-PARSE
W
whichbrowser-parser
utilityphpv2.1.8
harness data pending
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.

Parser
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 issues
gotchaThe library may misidentify newer browsers if not updated regularly.
fix
Keep the package updated to the latest version.
affects: *
Upgrade
Version history
2.1.8latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
31 hits · last 30 days
node
30
Resources
whichbrowser-parser — pip install whichbrowser-parser · libregistry