Recommend this page to a friend! |
Classes of Faris AL-Otabi | Uploady PHP Upload File to MySQL | uploady/vendor/wolfcast/browser-detection/README.md | Download |
|
DownloadBrowserDetectionThe Wolfcast BrowserDetection PHP class facilitates the identification of the user's environment such as Web browser, version, platform family, platform version or if it's a mobile device or not. This class will try to detect what the user is using from the Always keep in mind that FeaturesThe Wolfcast 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 browsers: * Android * BlackBerry * BlackBerry Tablet OS * Chrome * Edge * Firebird * Firefox * GNU IceCat * GNU IceWeasel * iCab * Internet Explorer * Internet Explorer Mobile * Konqueror * Lynx * Mozilla * MSN TV * Netscape * Nokia Browser * Opera * Opera Mini * Opera Mobile * Phoenix * Safari * Samsung Internet * UC Browser You can also easily add custom rules to support other browsers not natively supported! Natively detects the following robots: * Bingbot * Googlebot * MSNBot * W3C Validator * Yahoo! Multimedia * Yahoo! Slurp You can also easily add custom rules to support other robots not natively supported! Natively detects the following platforms: * Android * BlackBerry * Chrome OS * FreeBSD * iOS * Linux * Macintosh * NetBSD * Nokia * OpenBSD * OpenSolaris * Symbian * Windows * Windows CE * Windows Phone You can also easily add custom rules to support other platforms not natively supported! RequirementsRequires PHP 5.3 or newer (tested with PHP 8.1.0, 7.4.26 and 5.6.40). Demo and full documentationYou can try the live demo of the class and you can read the documentation. InstallationTo install, simply upload Usage
HistoryCorrectly 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. LicenseSPDX-License-Identifier: MIT OR LGPL-3.0-only |