PHP Classes

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

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


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
Age: ???
All time rank: 2267312 in United States United States
Week rank: 259 Up24 in United States United States Up


  Files folder image Files  
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.

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:4,528
This week:78Up
User Ratings User Comments (1)
 All time