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
MIT License
10.55k stars 2.68k forks source link

How do I get the mobile name? #868

Closed anhao closed 3 years ago

anhao commented 3 years ago

Issue description How do I get the mobile name?

User-Agent(s)

Suggestions

DrLightman commented 3 years ago

You don't need the library, parse the global var $_SERVER['HTTP_USER_AGENT']

anhao commented 3 years ago

You don't need the library, parse the global var $_SERVER['HTTP_USER_AGENT']

I need mobile name, For example: iPhone, iPad , Xiaomi,Pixel