Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Is a tool to help PHP developers who need to detect whether a mobile device is accessing the application

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 README
Octocat-spinner-32 ismobile.class.php
Octocat-spinner-32 ismobile_example_log.php
Octocat-spinner-32 ismobile_examples.php
README
how-to

1 - download the project
2 - create a php file (e.g: foo.php)
3 - put this code sample:

require_once "ismobile.class.php";

$ismobi = new IsMobile();

if($ismobi->CheckMobile()) {
    echo 'Your mobile device is a ' . $ismobi->GetMobileDevice() . '? ';
}
else {
    echo "It isn't a mobile device...";
}

4 - ..and go drink a beer
Something went wrong with that request. Please try again.