From e8b0865cb245b8dedb199e6eeed3bc1886cd5705 Mon Sep 17 00:00:00 2001 From: Wolfcast Date: Sun, 1 May 2022 21:27:35 -0400 Subject: [PATCH] Version 2.9.6 (release) --- README.md | 19 +- docs/Browser_Detection/BrowserDetection.html | 346 +- .../_BrowserDetection.php.html | 10 +- ...owser_Detection__BrowserDetection.php.html | 4564 +++++++++-------- docs/classtrees_Browser_Detection.html | 2 +- docs/elementindex.html | 4 +- docs/elementindex_Browser_Detection.html | 4 +- docs/errors.html | 2 +- docs/index.html | 2 +- docs/li_Browser_Detection.html | 2 +- lib/BrowserDetection.php | 84 +- 11 files changed, 2569 insertions(+), 2470 deletions(-) diff --git a/README.md b/README.md index 2468c2c..127506e 100644 --- a/README.md +++ b/README.md @@ -12,19 +12,19 @@ Features The [Wolfcast](https://wolfcast.com/) BrowserDetection PHP class is the most accurate detection class. **It has been tested with 14000+ different user agent strings and it have a 99.95% accuracy ratio!** -Natively detects the following broswers: +Natively detects the following browsers: * Android * BlackBerry * BlackBerry Tablet OS - * Chrome 0.2 - 79+ - * Edge (Including the new Edge based on Chromium) + * Chrome + * Edge * Firebird - * Firefox 0.10 - 72+ + * Firefox * GNU IceCat * GNU IceWeasel * iCab - * Internet Explorer 1 - 11 + * Internet Explorer * Internet Explorer Mobile * Konqueror * Lynx @@ -32,11 +32,11 @@ Natively detects the following broswers: * MSN TV * Netscape * Nokia Browser - * Opera 4.02 - 66+ + * Opera * Opera Mini * Opera Mobile * Phoenix - * Safari 1 - 13+ + * Safari * Samsung Internet * UC Browser @@ -56,6 +56,7 @@ You can also easily add custom rules to support other robots not natively suppor Natively detects the following platforms: * Android * BlackBerry + * Chrome OS * FreeBSD * iOS * Linux @@ -74,7 +75,7 @@ You can also easily add custom rules to support other platforms not natively sup Requirements ------------ -Requires PHP 5.3 or newer (tested with PHP 5.3.29 - 7.4.0). +Requires PHP 5.3 or newer (tested with PHP 8.1.0, 7.4.26 and 5.6.40). Demo and full documentation --------------------------- @@ -102,7 +103,7 @@ if ($browser->getName() == Wolfcast\BrowserDetection::BROWSER_FIREFOX && History ------- -Correctly identifying what Web browser your users are using is an incredibly complex task. If you ever tried to implement something like this you quickly saw how this can become a code mess. Only a few libraries exists and they often get deprecated and becomes abandonware. This is why we created our own detection engine. We didn't started from scratch. The class is a heavily updated version of Chris Schuld's Browser class version 1.9 (which was unmaintained for a couple of years). Chris' class was based on the original work from Gary White. +Correctly identifying what Web browser your users are using is an incredibly complex task. If you ever tried to implement something like this you quickly saw how this can become a code mess. Only a few libraries exist and they often get deprecated and becomes abandonware. This is why we created our own detection engine. We didn't start from scratch. The class is a heavily updated version of Chris Schuld's Browser class version 1.9 (which was unmaintained for a couple of years). Chris' class was based on the original work from Gary White. License ------- diff --git a/docs/Browser_Detection/BrowserDetection.html b/docs/Browser_Detection/BrowserDetection.html index c48d5f1..87feafa 100644 --- a/docs/Browser_Detection/BrowserDetection.html +++ b/docs/Browser_Detection/BrowserDetection.html @@ -66,12 +66,12 @@

Author(s):

Version:

Copyright:

@@ -128,6 +128,7 @@

Constants

  • BROWSER_UNKNOWN
  • PLATFORM_ANDROID
  • PLATFORM_BLACKBERRY
  • +
  • PLATFORM_CHROME_OS
  • PLATFORM_FREEBSD
  • PLATFORM_IOS
  • PLATFORM_LINUX
  • @@ -260,8 +261,8 @@

    Methods

    Class Details

    -[line 148]
    -The BrowserDetection class facilitates the identification of the user's environment such as Web browser, version, platform and device type.

    Typical usage:

    $browser = new Wolfcast\BrowserDetection(); if ($browser->getName() == Wolfcast\BrowserDetection::BROWSER_FIREFOX && $browser->compareVersions($browser->getVersion(), '5.0') >= 0) { echo 'You are using FireFox version 5 or greater.'; }

    The class is a rewrite of Chris Schuld's Browser class version 1.9 which is mostly unmaintained since August 20th, 2010. Chris' class was based on the original work from Gary White.

    Updates:

    2020-02-02: Version 2.9.5