<?php include_once 'path/to/spyc/Spyc.php'; include_once 'path/to/device-detector/autoload.php'; use DeviceDetector\ClientHints; use DeviceDetector\DeviceDetector; use DeviceDetector\Parser\Device\AbstractDeviceParser; // OPTIONAL: Set version truncation to none, so full versions will be ...
Instead of using the full power of DeviceDetector it might in some cases be better to use only specific parsers. If you aim to check if a given useragent is a bot and don't require any of the other information, you can directly use the bot parser. ...