Registry / utility / piwik-device-detector

piwik-device-detector

JSON →
library6.5.0phppackagistunverified

The Universal Device Detection library that parses User Agents and detects devices, clients, operating systems, and brands.

composer require piwik/device-detector
INSTALL
IMPORT
SIG · PIWIK-DEVICE-DETEC
P
piwik-device-detector
utilityphpv6.5.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.

DeviceDetector
use DeviceDetector\DeviceDetector;

Parse a user agent string and detect the device type.

use DeviceDetector\DeviceDetector; $dd = new DeviceDetector('Mozilla/5.0 (Linux; Android 10; SM-G975F)'); $dd->parse(); $device = $dd->getDeviceName(); // 'smartphone' echo $device;
Debug
Known issues
breakingThis package is a legacy alias for matomo/device-detector; prefer using matomo/device-detector directly.
fix
Replace piwik/device-detector with matomo/device-detector in your composer.json.
affects: >=6.0.0
Upgrade
Version history
6.5.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
4
Resources
piwik-device-detector — pip install piwik-device-detector · libregistry