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: 519 All time: 5,195 This week: 1,547Up
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: 43
All time rank: 230225 in Switzerland Switzerland
Week rank: 1779 Up17 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:519All time:5,195
 This week:0This week:1,547Up