Login   Register  
PHP Classes
elePHPant
Icontem

MobileUserAgent: Extract information from mobile browser identifier

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author Author  
Picture of Craig Manley
Name: Craig Manley <contact>
Classes: 5 packages by
Country: The Netherlands The Netherlands
Age: ???
All time rank: 2104 in The Netherlands The Netherlands
Week rank: 1864 Down49 in The Netherlands The Netherlands Down
Innovation award
Innovation award
Nominee: 4x


  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
This class parses user agent identifier strings from browsers used by mobile devices to extract relevant information.

It recognizes many of the current mobile user agent identifier strings and processes them to extract their basic constituent parts, the most important being the mobile device vendor and model.

An useful application of this class is to use the extracted information to lookup vendor and model specific device characteristics in a database, or to detect if the visiting browser uses a certain type of mobile device.

Of course you could use user agent profiles for this, but not all mobile phones have (valid) user agent profiles, especially the older types of mobile phones.

This class was already verified to work correctly with over 2000 user agent strings.

  Classes of Craig Manley  >  MobileUserAgent  >  Download Download .zip .tar.gz  >  Support forum Support forum (4)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: MobileUserAgent
Base name: mobileuseragent
Description: Extract information from mobile browser identifier
Version: 1.0.0
PHP version: -
License: GNU Lesser General Public License (LGPL)
All time users: 5043 users
All time rank: 472
Week users: 0 users
Week rank: 1607 Equal
 
  Groups   Rate classes User ratings   Trackback   Applications   Files Files  

  Groups  
Group folder image HTTP HTTP protocol clients, headers and cookies View top rated classes
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Wireless and Mobile Wireless communications, handheld and pocket computing View top rated classes


  Innovation Award  
PHP Programming Innovation award nominee
December 2004
Number 5


Prize: One subscription to the PDF edition of the magazine by PHP Architect
The possibilities of mobile devices like cellular phones and palmtops vary a lot depending on the type of device, brand and model characteristics.

To take advantage of the possibilities of each type of device it is necessary to know which are the supported capabilities.

This class is capable of parsing the User-Agent identification string sent by the device browser application to the Web server. Then it extracts the relevant details that can be used to cross-check a database of device specific characteristics supplied by their vendors.

With this information it is possible to determine which capabilities can be used to deliver content or provide services to each type of mobile device that accesses a Web site.

Manuel Lemos

  User ratings  
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: Sufficient (75%) Sufficient (77%) - Sufficient (72%) Not sure (50%) - Not sure (57%) 1059
Month: Not yet rated by the users

  Pages that reference this package  
Avoiding Duplicate Content for Mobile (Portuguese)
A good tip for those who use PHP is to use a class called MobileUserAgent , which makes this verification was based on a list of mobile user-agents...
Info on Get Mobile User Agent using PHP
If you are looking for a solution to reconize the create personalized services for mobile websites for different mobile devices, you may find the Get Mobile User Agent PHP class from PHP Classes - Class: MobileUserAgent...

Latest pages that reference packages Latest pages that reference packages


  Applications that use this package  
No pages of applications that use this class were specified.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Plain text file detect_mobile_client.php Example Contains a function to detect if the visiting client is a mobile handset.
Accessible without login Plain text file MobileUserAgent.php Class The main class. Complete package with docs is available here: http://sourceforge.net/projects/mobileuseragent/
Plain text file tmobileua.php Test Test script.
Plain text file unique_vendor_model_useragents.txt Output Unique tab seperated list of vendor, model, and the useragent they were extracted from.

Install with Composer Install with Composer - Download Download all files: mobileuseragent.tar.gz mobileuseragent.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.