PHP Mobile Detector

Overview

MobileDetector is a script that will detect if the user is an agent and if possible the mobile type.

Demo

If you wish to test the product give the MobileDetector demo a try.

Basic usage

Basic usage example:

<?php
  
require_once(dirname(dirname(__FILE__)) . '/library/MobileDetector.php');
  
  
$detector = new MobileDetector();
  
$isMobile $detector->isMobile();
  
  if (
$isMobile) {
      
$mobileType $detector->getMobileType();
      echo 
'Detected mobile: ' $mobileType;
  } else {
      echo 
'Not mobile.';
  }
?>

Requirements

Mobile types

The following mobile types are detected:

Buy it

You can buy it now from binpress.com.

Buy now

Documentation

Here is the documentation for PHP Mobile Detector.

Changelog