Other versions

Learn how to install the versions for older PHP versions

2.x

require_once("/path/to/package/Mobile_Detect.php");

$detect = new Mobile_Detect();
$detect->isMobile();
$detect->isTablet();

3.x

require_once "/path/to/package/src/MobileDetect.php"

$detect = new \Detection\MobileDetect;
$detect->isMobile();
$detect->isTablet();

Last updated