How to get mobile device id in mobile web?

user1124166 picture user1124166 · Feb 28, 2017 · Viewed 11.5k times · Source

I tried to get device id from mobile through PHP code. Is there any possibility to get mobile device id from PHP code.

Answer

NID picture NID · Feb 28, 2017

There is a really simple solution to use Mobile-detect here: https://github.com/serbanghita/Mobile-Detect/

Mobile_Detect is a lightweight PHP class for detecting mobile devices (including tablets). It uses the User-Agent string combined with specific HTTP headers to detect the mobile environment. http://mobiledetect.net