8000 GitHub - hdunk/uadetector.class.php: User Agent Detector PHP class
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

hdunk/uadetector.class.php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uadetector.class.php

UADetector PHP class

A PHP4+ class for fast, accurate user agent detection.

version: 0.9.3

author: helened

Author URI: http://helenesit.com

Copyright (c) 2009-2018 Helene Duncker

Usage:

for detection of current user agent:

  include_once(uadetector.class.php);
  $ua_obj = new UADetector();
$ua_obj has 16 fields:
$ua_obj->name,
$ua_obj->version,
$ua_obj->os,
$ua_obj->platform,
$ua_obj->emulation,
$ua_obj->agenttype ( B=Browser, F=feedreader (could also have type=R) R=robot (spider|archiver|validator), S=Spam/malware code in agent string )
...
### Notes: * UADetector attempts to find the actual browser in use. This may cause the "name" field to differ from "emulation" field when user-agent spoofing is detected. You should use the most appropriate field for your application type:
  • "Name" field is best for statistics collection
  • "Emulation" field is best for UI customizations by browser.
* UADetector was originally developed as a module for Wassup Wordpress plugin, a website analytics tool.

Changelog:

v0.9.3: updated for PHP7 compatibility v0.9.2: updated for detection of Microsoft Edge browser on Windows and Windows Phone

About

User Agent Detector PHP class

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0