PHP Classes

Request Info User Agent: Detect the type of browser accessing the site

Recommend this page to a friend!
  Info   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStar 24%Total: 737 This week: 1All time: 4,531 This week: 560Up
Version License PHP version Categories
request_user_agent 1.0BSD License5.0HTTP, PHP 5
Description 

Author

This class can be used to detect the type of browser accessing the site.

It can parse the user agent identification sent by the browser or robot accessing the site and extract the browser type and other details.

Currently it can determin whether the browser is a regular browser, a search engine crawler, a mobile phone, the user operating system, etc..

Picture of Frédéric Thizy
Name: Frédéric Thizy <contact>
Classes: 1 package by
Country: France France
Age: 46
All time rank: 276876 in France France
Week rank: 411 Up15 in France France Up

  Files folder image Files  
File Role Description
Files folder imageData (1 file)
Files folder imagetest (1 file, 1 directory)
Plain text file UserAgent.php Class The main class.
Plain text file Exception.php Class Exception

  Files folder image Files  /  Data  
File Role Description
  Accessible without login Plain text file refUA.php Data The detection data

  Files folder image Files  /  test  
File Role Description
Files folder image_data (3 files)
  Plain text file UserAgentTest.php Class Unit test, see it for exemples

  Files folder image Files  /  test  /  _data  
File Role Description
  Accessible without login Plain text file syntheseFunction.php Example exemple for make stat with the xml file
  Accessible without login Plain text file testReadCache.php Data other file for test
  Accessible without login Plain text file UA.xml Data users agents for test

 Version Control Unique User Downloads Download Rankings  
 0%
Total:737
This week:1
All time:4,531
This week:560Up
 User Ratings  
 
 All time
Utility:33%StarStar
Consistency:41%StarStarStar
Documentation:-
Examples:33%StarStar
Tests:-
Videos:-
Overall:24%StarStar
Rank:4365