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.
php
brand
opera
user-agent
tablet
media-player
nokia
hacktoberfest
detection-library
device-detector
symbian-os
palm
bot-detection
mobile-detection
-
Updated
Jun 26, 2022 - PHP
Using
ngx-device-detector@2.0.1
Safari:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Safari/605.1.15
Firefox Daylight 29.1:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15
Both give the following results:
device:
Unknown
, expectediPad
deviceType: `tab