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.54k stars 2.68k forks source link

Support for Oppo, Vivo, and Realme phones #918

Open rudi97277 opened 1 year ago

rudi97277 commented 1 year ago

Issue description Hello. Oppo, Vivo and Realme phones are the most used phones in Indonesia. Can you please add support for those 3 phones?

Thank you.

User-Agent(s) Example for realme phone : Mozilla/5.0 (Linux; Android 10; RMX2030) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Mobile Safari/537.36

CatAnonymous commented 1 year ago

preg_match('/RMX([0-9]+)/', $ua)