GitHub - matomo-org/device-detector: The Universal Device Detection library will parse any User Agent and detect the browser, operating system, device used (desktop, tablet, mobile, tv, cars, console, etc.), brand and model.
DeviceDetector
Code Status
Description
The Universal Device Detection library that parses User Agents and Browser Client Hints to detect devices (desktop, tablet, mobile, tv, cars, console, etc.), clients (browsers, feed readers, media players, PIMs, ...), operating systems, brands and models.
Usage
Using DeviceDetector with composer is quite easy. Just add matomo/device-detector to your projects requirements.
composer require matomo/device-detector
And use some code like this one:
require_once ...
Read more at github.com