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  
2015-01-09 (2 months ago) RSS 2.0 feedNot enough user ratingsTotal: 1,056 This week: 1All time: 3,299 This week: 1,291Up
Version License PHP version Categories  
mobile-detection 1.3.1MIT/X Consortium ...5.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: 2105135 in Germany Germany
Week rank: 990 Up43 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,056All time:3,299
 This week:1This week:1,291Up