foroco / php-browser-detection

Ultra fast PHP library to detect browser, OS, platform and device type by User-Agent parsing
MIT License
137 stars 33 forks source link

Device name #10

Closed de1phi48 closed 1 year ago

de1phi48 commented 2 years ago

Good day,

please consider adding a new array element - device_name Mozilla/5.0 (Linux; Android 11; M2012K11G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Mobile Safari/537.36 M2012K11G - model of device.

netAction commented 2 years ago

The device name would be very helpful in these common cases too:

Ipad: Mozilla/5.0 (iPad; CPU OS 11_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.0 Mobile/15E148 Safari/604.1

Iphone: Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) GSA/216.0.453113025 Mobile/15E148 Safari/604.1

SM-S901B: Mozilla/5.0 (Linux; Android 12; SM-S901B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Mobile Safari/537.36

foroco commented 1 year ago

Hi,

At the moment there are no plans to add device detection, as this requires a sufficient database of devices.