PHP Classes

Browser Detection: Determine the browser and OS from the user agent

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
StarStarStarStar 63%Total: 3,440 All time: 988 This week: 673Up
Version License Categories
browser_detection 1.0BSD LicenseHTTP
Description 

Author

This class should be used to parse browser "user agent" string and determine exact browser version and operating system.

It recognize all popular browsers/os's as well as some not so popular. It returns the browsers name and its exact version number (ie. Firefox 1.0.7).

Picture of Dragan Dinic
Name: Dragan Dinic <contact>
Classes: 2 packages by
Country: Yugoslavia

  Files folder image Files (2)  
File Role Description
Plain text file browser_detection.php Class Browser Detection class
Accessible without login Plain text file example.php Test Example of usage

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:3,440
This week:0
All time:988
This week:673Up
User Ratings User Comments (3)
 All time
Utility:92%StarStarStarStarStar
Consistency:90%StarStarStarStarStar
Documentation:-
Examples:-
Tests:82%StarStarStarStarStar
Videos:-
Overall:63%StarStarStarStar
Rank:815
 
Excellent
15 years ago (kishore kumar)
65%StarStarStarStar
It will be better to get the browser version using separate f...
16 years ago (Backer)
67%StarStarStarStar
Odli&#269;no
16 years ago (Dusan Boskic)
70%StarStarStarStar