Skip to content
/ ismobile Public
forked from porkaria/ismobile

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

Notifications You must be signed in to change notification settings

getda/ismobile

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%