PHP Classes

PHP User Agent Parser class: Parse the user agent and extract browser details

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 56%Total: 738 All time: 4,529 This week: 78Up
Version License PHP version Categories
parseuseragentstring 1.21GNU General Publi...5.0HTTP, PHP 5
Description 

Author

This class can parse the user agent and extract browser details.

It can parse the current browser user agent or a given user agent string.

The class can analyze the user agent details and store detected browser characteristics in class variables.

Currently it can detect the browser type, computer type (PC, mobile, bot), computer OS, and technology capabilities like JavaScript, frames, CSS, VBScript, cookies, background sounds, Java, ActiveX, mobile, etc..

Picture of Tom Parkison
Name: Tom Parkison <contact>
Classes: 2 packages by
Country: United States United States

Recommendations

  Files folder image Files (4)  
File Role Description
Accessible without login Plain text file changelog.txt Doc. Official Changelog
Accessible without login Plain text file documentation.txt Doc. How to use this class, example code
Plain text file parseUserAgentString.php Class The main file.
Plain text file parseUserAgentString_without_bots.php Class The same thing as parseUserAgentString.php but without bot detection code.

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:738
This week:0
All time:4,529
This week:78Up
User Ratings User Comments (1)
 All time
Utility:78%StarStarStarStar
Consistency:78%StarStarStarStar
Documentation:90%StarStarStarStarStar
Examples:-
Tests:-
Videos:-
Overall:56%StarStarStar
Rank:1874