Home » Networking » Net_UserAgent_Detect
Net_UserAgent_Detect determines the Web browser, version, and platform from an HTTP user agent string
This package is unmaintained.
Download latest release 2.5.2 (archived versions might be outdated)
License: PHP License
Description
The Net_UserAgent object does a number of tests on an HTTP user
agent string. The results of these tests are available via methods of
the object.
This module is based upon the JavaScript browser detection code
available at http://www.mozilla.org/docs/web-developer/sniffer/browser_type.html.
This module had many influences from the lib/Browser.php code in
version 1.3 of Horde.
Maintainers
- Jason Rust (jrust) — lead, active
- Dan Allen (dallen) — helper, active
- David Costa (gurugeek) — helper, active
Dependencies
Required
- PHP (>= 4.1.0)
- PEAR Installer (>= 1.4.0b1)
Releases
- 2.5.2 (stable, 2010-04-15)
Release notes
License: PHP License
#15101: IE7up and IE8up correctly detected.
#15834: Now detecting different versions of OSX.
#16934: Fix undefined offset error.
Adding support for IE9 and iPhone. - 2.5.1 (stable, 2009-06-09)
Release notes
License: PHP License
Request #14790 - PHPCS
Request #16224 - IE8, Vista detection - 2.5.0 (stable, 2008-10-11)
Release notes
License: PHP License
* Added support for Google Chrome, Firefox 3, and Safari Mobile (iphone) (matteo)
* Fixed a path error in APC.php. - 2.4.0 (stable, 2007-09-19)
Release notes
License: PHP License
* Added a subclass, Net_UserAgent_Detect_APC, which allows Net_UserAgent_Detect results to be cached which makes subsequent lookups for that specific User Agent string very fast (Lucas Nealan)
* Added support Windows CE (Lucas Nealan)
* Added support for IE Mobile (Lucas Nealan)
* Quirk detect for AJAX has been updated (Lucas Nealan) - 2.3.0 (stable, 2007-04-23)
Release notes
License: PHP License
* Additional browsers are now detected: opera9, firefox1.5, and firefox2.x
* Added new feature detection for if a browsers has SVG
* Added new feature detection for if a browsers has CSS2
* Fixed a bug that crashed the script when running with APC - 2.2.0 (stable, 2006-04-19)
Release notes
License: PHP License
* Adding new "browsers" that make it easier to exclude old browsers: belowie6, belowns6, and belowopera8
* Additional browsers now supported: opera8, ie7, icab
* Adding new "feature" which tells if a browser is AJAX enabled: ajax
* IE 5 on Mac is now detected correctly as ie5
* Force override of the user agent now works. - 2.1.0 (stable, 2005-04-18)
Release notes
License: PHP License
* Added support for firefox, opera6, opera7, aol8, webdav, netgem/iplayer, and win2003
* The getQuirk() method now works correctly
* Normally all browser information is cached the first time Net_UserAgent_Detect is run on a page to make it as speedy as possible. However, in some case there is need to clear the cached data. This can now be done by setting the "re-evaluate" option. - 2.0.1 (stable, 2004-03-11)
Release notes
License: PHP 2.01
* Made it PHP5 compatible in a way that is BC
* Added support for Safari
* Bumped konq's javascript version up to 1.4
* Fix bug where w3m caused warnings
* fixed a notice error when the user agent is empty
* Fixed missing windows xp detection and added nested_table_render_bug quirk for netscape 4.8 and below.
* Code cleanups. - 1.0 (stable, 2002-05-21)
Release notes
License: PHP 2.01
This is the initial independent PEAR release.
Bugs
| ID | Status | Type | Version | Date | Summary |
|---|---|---|---|---|---|
| #187 | Closed | Bug | 2003-11-04 | New Apple browser Safari not supported in User Agent Identification | |
| #826 | Closed | Bug | 2004-02-21 | Assignment to $this | |
| #892 | Closed | Bug | 2004-02-26 | PEAR QA: improvement for get_class()-usage | |
| #974 | Closed | Bug | 2004-03-08 | Cannot re-assign $this error with the latest beta | |
| #1311 | Closed | Req | 2004-04-29 | [Patch] Detect webDAV client | |
| #1407 | Closed | Bug | 2004-05-14 | Nor Firefox, Opera, Windows Server 2003 can be recognized | |
| #2025 | Closed | Req | 2004-07-30 | UserAgent_detect should detect more than one brower per page | |
| #2736 | Closed | Bug | 2004-11-11 | Lack of CVS link on the package info page | |
| #2919 | Closed | Bug | 2004-12-08 | Invalid result in getQuirk method | |
| #3118 | Bogus | Bug | 2005-01-05 | Incorrect result from hasAcceptType | |
| #3215 | No Feedback | Bug | 2005-01-15 | Hey guys .. are ya going to do something about the error on 206 ? When ? | |
| #3361 | Bogus | Bug | 2005-02-02 | Net_UserAgent_Detect not shown using PEAR web installer | |
| #7426 | Closed | Bug | 2.2.0 | 2006-04-19 | Bad PHP form |
| #7466 | Closed | Bug | 2.2.0 | 2006-04-23 | Safari + IE7 detection |
| #7967 | Closed | Req | 2.2.0 | 2006-06-23 | hasFeature('svg') |
| #8207 | Closed | Req | 2.2.0 | 2006-07-13 | hasFeature('css2') |
| #8416 | Closed | Bug | 2.2.0 | 2006-08-11 | Opera is detectet wrong! |
| #14288 | Closed | Req | 2.4.0 | 2008-07-03 | [Patch] Add Firefox 3 support |
| #14586 | Closed | Req | 2.4.0 | 2008-09-02 | Add Google Chrome Support |
| #14790 | Closed | Req | CVS | 2008-10-14 | Improve PHPCS results |
| #15101 | Closed | Bug | 2.5.0 | 2008-11-20 | IE7 not correctly detected |
| #15764 | Closed | Bug | 2.5.0 | 2009-01-25 | Undefined offset in Net_UserAgent_Detect::getBrowserString() |
| #15834 | Closed | Req | 2.5.0 | 2009-01-30 | Add better Mac Operating System Support |
| #15849 | Closed | Bug | 2.5.0 | 2009-01-31 | Missing OS/2 support |
| #15984 | Closed | Req | 2009-03-05 | Add Vista support | |
| #16224 | Closed | Req | 2.5.0 | 2009-05-13 | IE 8 and Windows Vista detection |
| #16935 | Closed | Bug | 2.5.1 | 2009-12-21 | Undefined offset: 1 in pear_net_useragent_detect.php:418 as PHP notice |
| #18580 | Closed | Req | 2.5.2 | 2011-06-01 | Detect IE9 compat mode |
| #18705 | Open | Req | 2.5.2 | 2011-08-03 | Opera newest version detection fail |
| #18744 | Analyzed | Bug | 2.5.2 | 2011-08-19 | ie detection flawed, have fix |
| #19366 | Closed | Bug | 2.5.2 | 2012-04-03 | iPad detection |
| #19738 | Open | Req | 2012-12-09 | Missing support for Windows 8 |