Login   Register  
PHP Classes
elePHPant
Icontem

PHP Mobile Detection class: Detect whether the browser is on a mobile device

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2013-04-01 (1 year ago) RSS 2.0 feedNot yet rated by the usersTotal: 516 This week: 1All time: 5,182 This week: 1,439Up
Version License PHP version Categories  
mobile-detect 1.0The PHP License5.0HTTP, PHP 5
Description Author  

This class can detect whether the browser is on a mobile device.

It can look at the browser user agent string and check it it is one of the strings used by mobile phones or tablets.

The class sets a variable with all types of mobile device that it matched.

Picture of Daniel Gasser
Name: Daniel Gasser <contact>
Classes: 2 packages by
Country: Switzerland Switzerland
Age: 42
All time rank: 229125 in Switzerland Switzerland
Week rank: 1106 Up11 in Switzerland Switzerland Up

  Files folder image Files  
File Role Description
Plain text file Mobile.class.php Class Class to detect mobile browsers

 Version Control Unique User Downloads Download Rankings  
 0%Total:516All time:5,182
 This week:1This week:1,439Up