Login   Register  
PHP Classes
elePHPant
Icontem

Mobile Detection: Detect mobile devices from request headers

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 (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2013-01-04 (1 year ago) RSS 2.0 feedNot enough user ratingsTotal: 1,021 All time: 3,355 This week: 1,235Up
Version License PHP version Categories  
mobile-detection 1.3MIT/X Consortium License5.0HTTP, PHP 5, Wireless and Mobile
Description Author  

This class can detect mobile devices from request headers.

It can analyze the HTTP request user agent and accept headers to determine whether the user accessing the server is using a known mobile device.

The class can also redirect the request to a separate domain or sub-directory of the current domain if the user is using a mobile device.

It also supports special GET request parameters that when present will force the class treat the current request as coming from a mobile device or not.

Picture of Harry Kämpf
Name: Harry Kämpf <contact>
Classes: 1 package by
Country: Germany Germany
Age: ???
All time rank: 2125140 in Germany Germany
Week rank: 1555 Up79 in Germany Germany Up

  Files folder image Files  
File Role Description
Plain text file clsMobileDetection.php Class mobile detection class
Accessible without login Plain text file readme.txt Doc. Documentation / Explanation
Accessible without login Plain text file index.php Example example for redirect to subdomain, .mobi domain or subdirectory
Accessible without login Plain text file index2.php Example example for switch content in the same page

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,021All time:3,355
 This week:0This week:1,235Up