PHP Classes

Simple Browser Detection: Determine the type of browser

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 45%Total: 1,196 All time: 3,170 This week: 673Up
Version License Categories
browsertypeclass 1.0Freely DistributableHTTP
Description 

Author

This is a very simple class that can be used to determine which browser is being used to access the site.

The class looks the user-agent name identification and looks for text that match what is used by several known browsers.

It returns a string with two characters that is an abbreviation of the identified browser. If the browser could not be identified, it returns an empty string.

Picture of Patrick Mahoney
Name: Patrick Mahoney <contact>
Classes: 1 package by
Country: United States United States

  Files folder image Files (1)  
File Role Description
Plain text file browserType.class.php Class This is the actual class source

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:1,196
This week:0
All time:3,170
This week:673Up
User Ratings User Comments (1)
 All time
Utility:75%StarStarStarStar
Consistency:78%StarStarStarStar
Documentation:-
Examples:-
Tests:-
Videos:-
Overall:45%StarStarStar
Rank:3359
 
Excellent
15 years ago (kishore kumar)
60%StarStarStarStar