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.

https://github.com/serbanghita/Mobile-Detect