Registry / utility / cbschuld-browser-php

cbschuld-browser-php

JSON →
library2.0.0phppackagistunverified

Detects a user's browser from the user-agent string.

composer require cbschuld/browser.php
INSTALL
IMPORT
SIG · CBSCHULD-BROWSER-P
C
cbschuld-browser-php
utilityphpv2.0.0
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.

Browser
use Browser\Browser;

Detects the browser from the user agent string.

use Browser\Browser; $browser = new Browser($_SERVER['HTTP_USER_AGENT']); echo $browser->getBrowser();
Debug
Known issues
gotchaNot guaranteed to detect all browsers accurately.
fix
Use a more modern library like whichbrowser/parser for better accuracy.
affects: *
Upgrade
Version history
2.0.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
cbschuld-browser-php — pip install cbschuld-browser-php · libregistry