UserAgent

Extract data from the user-agent header. The methods provided in this class are not the fastest and do not give the most consistent results. Use this class only if approximate results are enough for you. For consistent results check for a service provider.
Source
UserAgent.php

Static Methods

isMobile

bool UserAgent::isMobile()

Is mobile. Using RegEx from http://detectmobilebrowsers.com/ To get consistent results use a service provider such as Device Atlas.

Returns

bool