PHP Classes

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

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
StarStar 24%Total: 737 All time: 4,535 This week: 673Up
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: 47
All time rank: 277576 in France France
Week rank: 180 Up12 in France France Up

  Files folder image Files (7)  
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 (7)  /  Data  
File Role Description
  Accessible without login Plain text file refUA.php Data The detection data

  Files folder image Files (7)  /  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 (7)  /  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

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:737
This week:0
All time:4,535
This week:673Up
 User Ratings  
 
 All time
Utility:33%StarStar
Consistency:41%StarStarStar
Documentation:-
Examples:33%StarStar
Tests:-
Videos:-
Overall:24%StarStar
Rank:4430