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
Not enough user ratingsTotal: 736 All time: 4,525 This week: 83Up
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: 45
All time rank: 276276 in France France
Week rank: 578 Up20 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:736
This week:0
All time:4,525
This week:83Up