method androidVerToStr [line 551]
string androidVerToStr(
string
$androidVer)
|
|
Convert the Android version numbers to the operating system name. For instance '1.6' returns 'Donut'.
Tags:
Parameters:
constructor __construct [line 265]
BrowserDetection __construct(
[string
$useragent = ''])
|
|
BrowserDetection class constructor.
Tags:
Parameters:
method checkBrowserAmaya [line 590]
boolean checkBrowserAmaya(
)
|
|
Determine if the browser is the Amaya Web editor or not.
Tags:
method checkBrowserAndroid [line 601]
boolean checkBrowserAndroid(
)
|
|
Determine if the browser is the Android browser (based on the WebKit layout engine and coupled with Chrome's JavaScript engine) or not.
Tags:
method checkBrowserBingbot [line 613]
boolean checkBrowserBingbot(
)
|
|
Determine if the browser is the Bingbot crawler or not.
Tags:
method checkBrowserBlackBerry [line 624]
boolean checkBrowserBlackBerry(
)
|
|
Determine if the browser is the BlackBerry browser or not.
Tags:
method checkBrowserChrome [line 660]
boolean checkBrowserChrome(
)
|
|
Determine if the browser is Chrome or not.
Tags:
method checkBrowserEdge [line 670]
boolean checkBrowserEdge(
)
|
|
Determine if the browser is Edge or not.
Tags:
method checkBrowserFirebird [line 680]
boolean checkBrowserFirebird(
)
|
|
Determine if the browser is Firebird or not. Firebird was the name of Firefox from version 0.6 to 0.7.1.
Tags:
method checkBrowserFirefox [line 691]
boolean checkBrowserFirefox(
)
|
|
Determine if the browser is Firefox or not.
Tags:
method checkBrowserGaleon [line 713]
boolean checkBrowserGaleon(
)
|
|
Determine if the browser is Galeon or not. The browser was discontinued on September 27, 2008.
Tags:
method checkBrowserGooglebot [line 723]
boolean checkBrowserGooglebot(
)
|
|
Determine if the browser is the Googlebot crawler or not.
Tags:
method checkBrowserIcab [line 742]
boolean checkBrowserIcab(
)
|
|
Determine if the browser is iCab or not.
Tags:
method checkBrowserIceCat [line 754]
boolean checkBrowserIceCat(
)
|
|
Determine if the browser is GNU IceCat (formerly known as GNU IceWeasel) or not.
Tags:
method checkBrowserIceWeasel [line 765]
boolean checkBrowserIceWeasel(
)
|
|
Determine if the browser is GNU IceWeasel (now know as GNU IceCat) or not.
Tags:
method checkBrowserInternetExplorer [line 777]
boolean checkBrowserInternetExplorer(
)
|
|
Determine if the browser is Internet Explorer or not.
Tags:
method checkBrowserKonqueror [line 868]
boolean checkBrowserKonqueror(
)
|
|
Determine if the browser is Konqueror or not.
Tags:
method checkBrowserLynx [line 880]
boolean checkBrowserLynx(
)
|
|
Determine if the browser is Lynx or not. It is the oldest web browser currently in general use and development.
It is a text-based only Web browser.
Tags:
method checkBrowserMozilla [line 890]
boolean checkBrowserMozilla(
)
|
|
Determine if the browser is Mozilla or not.
Tags:
method checkBrowserMsnBot [line 901]
boolean checkBrowserMsnBot(
)
|
|
Determine if the browser is the MSNBot crawler or not. In October 2010 it was replaced by the Bingbot robot.
Tags:
method checkBrowserMsnTv [line 912]
boolean checkBrowserMsnTv(
)
|
|
Determine if the browser is MSN TV (formerly WebTV) or not.
Tags:
method checkBrowserNetPositive [line 923]
boolean checkBrowserNetPositive(
)
|
|
Determine if the browser is NetPositive or not. The browser is discontinued since November 2001.
Tags:
method checkBrowserNetscape [line 934]
boolean checkBrowserNetscape(
)
|
|
Determine if the browser is Netscape or not. Official support for this browser ended on March 1st, 2008.
Tags:
method checkBrowserNokia [line 987]
boolean checkBrowserNokia(
)
|
|
Determine if the browser is a Nokia browser or not.
Tags:
method checkBrowserOmniWeb [line 1011]
boolean checkBrowserOmniWeb(
)
|
|
Determine if the browser is OmniWeb or not.
Tags:
method checkBrowserOpera [line 1033]
boolean checkBrowserOpera(
)
|
|
Determine if the browser is Opera or not.
Tags:
method checkBrowserPhoenix [line 1069]
boolean checkBrowserPhoenix(
)
|
|
Determine if the browser is Phoenix or not. Phoenix was the name of Firefox from version 0.1 to 0.5.
Tags:
method checkBrowsers [line 1079]
Determine what is the browser used by the user.
Tags:
method checkBrowserSafari [line 1131]
boolean checkBrowserSafari(
)
|
|
Determine if the browser is Safari or not.
Tags:
method checkBrowserSamsung [line 1170]
boolean checkBrowserSamsung(
)
|
|
Determine if the browser is the Samsung Internet browser or not.
Tags:
method checkBrowserSlurp [line 1180]
boolean checkBrowserSlurp(
)
|
|
Determine if the browser is the Yahoo! Slurp crawler or not.
Tags:
method checkBrowserUAWithVersion [line 1197]
boolean checkBrowserUAWithVersion(
mixed
$uaNameToLookFor, string
$userAgent, string
$browserName, [boolean
$isMobile = false], [boolean
$isRobot = false])
|
|
Test the user agent for a specific browser that use a "Version" string (like Safari and Opera). The user agent should look like: "Version/1.0 Browser name/123.456" or "Browser name/123.456 Version/1.0".
Tags:
Parameters:
method checkBrowserVivaldi [line 1230]
boolean checkBrowserVivaldi(
)
|
|
Determine if the browser is Vivaldi or not.
Tags:
method checkBrowserW3CValidator [line 1241]
boolean checkBrowserW3CValidator(
)
|
|
Determine if the browser is the W3C Validator or not.
Tags:
method checkBrowserYahooMultimedia [line 1278]
boolean checkBrowserYahooMultimedia(
)
|
|
Determine if the browser is the Yahoo! multimedia crawler or not.
Tags:
method checkForAol [line 1288]
Determine if the user is using an AOL "optimized" browser or not.
Tags:
method checkPlatform [line 1315]
Determine the user's platform.
Tags:
method checkPlatformVersion [line 1390]
void checkPlatformVersion(
)
|
|
Determine the user's platform version.
Tags:
method checkSimpleBrowserUA [line 1452]
boolean checkSimpleBrowserUA(
mixed
$uaNameToLookFor, string
$userAgent, string
$browserName, [boolean
$isMobile = false], [boolean
$isRobot = false], [string
$separator = '/'])
|
|
Test the user agent for a specific browser where the browser name is immediately followed by the version number.
The user agent should look like: "Browser name/1.0" or "Browser 1.0;".
Tags:
Parameters:
method cleanVersion [line 1533]
string cleanVersion(
string
$version)
|
|
Clean a version string from unwanted characters.
Tags:
Parameters:
method compareVersions [line 312]
int compareVersions(
string
$sourceVer, string
$compareVer)
|
|
Compare two version number strings.
Tags:
Parameters:
method containString [line 1495]
boolean containString(
string
$haystack, mixed
$needle, [boolean
$insensitive = true])
|
|
Find if one or more substring is contained in a string.
Tags:
Parameters:
method detect [line 1520]
Detect the user environment from the details in the user agent string.
Tags:
method getAolVersion [line 354]
Get the version of AOL (if any). AOL releases "optimized" Internet Explorer and Firefox versions. In the making they add their version number in the user agent string of these browsers.
Tags:
method getIECompatibilityView [line 379]
mixed getIECompatibilityView(
[boolean
$asArray = false])
|
|
Get the name and version of the browser emulated in the compatibility view mode (if any). Since Internet Explorer 8, IE can be put in compatibility mode to make websites that were created for older browsers, especially IE 6 and 7, look better in IE 8+ which renders web pages closer to the standards and thus differently from those older versions of IE.
Tags:
Parameters:
method getName [line 364]
Get the name of the browser. All of the return values are class constants. You can compare them like this: $myBrowserInstance->getName() == BrowserDetection::BROWSER_FIREFOX.
Tags:
method getPlatform [line 394]
Get the name of the platform family on which the browser is run on (such as Windows, Apple, iPhone, etc.). All of the return values are class constants. You can compare them like this: $myBrowserInstance->getPlatform() == BrowserDetection::PLATFORM_ANDROID.
Tags:
method getPlatformVersion [line 412]
string getPlatformVersion(
[boolean
$returnVersionNumbers = false], [boolean
$returnServerFlavor = false])
|
|
Get the platform version on which the browser is run on. It can be returned as a string number like 'NT 6.3' or as a name like 'Windows 8.1'. When returning version string numbers for Windows NT OS families the number is prefixed by 'NT ' to differentiate from older Windows 3.x & 9x release. At the moment only the Windows and Android operating systems are supported.
Tags:
Parameters:
method getUserAgent [line 447]
Get the user agent value used by the class to determine the browser details.
Tags:
method getVersion [line 456]
Get the version of the browser.
Tags:
method is64bitPlatform [line 466]
boolean is64bitPlatform(
)
|
|
Determine if the browser is executed from a 64-bit platform. Keep in mind that not all platforms/browsers report this and the result may not always be accurate.
Tags:
method isAol [line 476]
Determine if the browser is from AOL. AOL releases "optimized" Internet Explorer and Firefox versions. In the making they add their details in the user agent string of these browsers.
Tags:
method isChromeFrame [line 486]
Determine if the browser runs Google Chrome Frame (it's a plug-in designed for Internet Explorer 6+ based on the open-source Chromium project - it's like a Chrome browser within IE).
Tags:
method isInIECompatibilityView [line 497]
boolean isInIECompatibilityView(
)
|
|
Determine if the browser is in compatibility view or not. Since Internet Explorer 8, IE can be put in compatibility mode to make websites that were created for older browsers, especially IE 6 and 7, look better in IE 8+ which renders web pages closer to the standards and thus differently from those older versions of IE.
Tags:
method isMobile [line 506]
Determine if the browser is from a mobile device or not.
Tags:
method isRobot [line 515]
Determine if the browser is a robot (Googlebot, Bingbot, Yahoo! Slurp...) or not.
Tags:
method macVerToStr [line 1556]
string macVerToStr(
string
$macVer)
|
|
Convert the macOS version numbers to the operating system name. For instance '10.7' returns 'Mac OS X Lion'.
Tags:
Parameters:
method parseInt [line 1599]
int parseInt(
string
$intStr)
|
|
Get the integer value of a string variable.
Tags:
Parameters:
method reset [line 1608]
Reset all the properties of the class.
Tags:
method safariBuildToSafariVer [line 1632]
string safariBuildToSafariVer(
string
$version)
|
|
Convert a Safari build number to a Safari version number.
Tags:
Parameters:
method set64bit [line 1726]
void set64bit(
boolean
$is64bit)
|
|
Set if the browser is executed from a 64-bit platform.
Tags:
Parameters:
method setAol [line 1736]
void setAol(
boolean
$isAol)
|
|
Set the browser to be from AOL or not.
Tags:
Parameters:
method setAolVersion [line 1746]
void setAolVersion(
string
$version)
|
|
Set the version of AOL.
Tags:
Parameters:
method setBrowser [line 1758]
void setBrowser(
string
$browserName)
|
|
Set the name of the browser.
Tags:
Parameters:
method setMobile [line 1768]
void setMobile(
[boolean
$isMobile = true])
|
|
Set the browser to be from a mobile device or not.
Tags:
Parameters:
method setPlatform [line 1778]
void setPlatform(
string
$platform)
|
|
Set the platform on which the browser is on.
Tags:
Parameters:
method setPlatformVersion [line 1788]
void setPlatformVersion(
string
$platformVer)
|
|
Set the platform version on which the browser is on.
Tags:
Parameters:
method setRobot [line 1798]
void setRobot(
[boolean
$isRobot = true])
|
|
Set the browser to be a robot (crawler) or not.
Tags:
Parameters:
method setUserAgent [line 525]
void setUserAgent(
[string
$agentString = ''])
|
|
Set the user agent to use with the class.
Tags:
Parameters:
method setVersion [line 1808]
void setVersion(
string
$version)
|
|
Set the version of the browser.
Tags:
Parameters:
method webKitBuildToSafariVer [line 1827]
string webKitBuildToSafariVer(
string
$version)
|
|
Convert a WebKit build number to a Safari version number.
Tags:
Parameters:
method windowsNTVerToStr [line 1936]
string windowsNTVerToStr(
string
$winVer, [boolean
$returnServerFlavor = false])
|
|
Convert the Windows NT family version numbers to the operating system name. For instance '5.1' returns 'Windows XP'.
Tags:
Parameters:
method windowsVerToStr [line 1983]
string windowsVerToStr(
string
$winVer)
|
|
Convert the Windows 3.x & 9x family version numbers to the operating system name. For instance '4.10.1998' returns 'Windows 98'.
Tags:
Parameters:
method __toString [line 274]
Determine how the class will react when it is treated like a string.
Tags:
BROWSER_AMAYA = 'Amaya'
[line 114]
Constant for the name of the Web browser.
BROWSER_ANDROID = 'Android'
[line 115]
Constant for the name of the Web browser.
BROWSER_BINGBOT = 'Bingbot'
[line 116]
Constant for the name of the Web browser.
BROWSER_BLACKBERRY = 'BlackBerry'
[line 117]
Constant for the name of the Web browser.
BROWSER_CHROME = 'Chrome'
[line 118]
Constant for the name of the Web browser.
BROWSER_EDGE = 'Edge'
[line 119]
Constant for the name of the Web browser.
BROWSER_FIREBIRD = 'Firebird'
[line 120]
Constant for the name of the Web browser.
BROWSER_FIREFOX = 'Firefox'
[line 121]
Constant for the name of the Web browser.
BROWSER_GALEON = 'Galeon'
[line 122]
Constant for the name of the Web browser.
BROWSER_GOOGLEBOT = 'Googlebot'
[line 123]
Constant for the name of the Web browser.
BROWSER_ICAB = 'iCab'
[line 124]
Constant for the name of the Web browser.
BROWSER_ICECAT = 'GNU IceCat'
[line 125]
Constant for the name of the Web browser.
BROWSER_ICEWEASEL = 'GNU IceWeasel'
[line 126]
Constant for the name of the Web browser.
BROWSER_IE = 'Internet Explorer'
[line 127]
Constant for the name of the Web browser.
BROWSER_IE_MOBILE = 'Internet Explorer Mobile'
[line 128]
Constant for the name of the Web browser.
BROWSER_KONQUEROR = 'Konqueror'
[line 129]
Constant for the name of the Web browser.
BROWSER_LYNX = 'Lynx'
[line 130]
Constant for the name of the Web browser.
BROWSER_MOZILLA = 'Mozilla'
[line 131]
Constant for the name of the Web browser.
BROWSER_MSNBOT = 'MSNBot'
[line 132]
Constant for the name of the Web browser.
BROWSER_MSNTV = 'MSN TV'
[line 133]
Constant for the name of the Web browser.
BROWSER_NETPOSITIVE = 'NetPositive'
[line 134]
Constant for the name of the Web browser.
BROWSER_NETSCAPE = 'Netscape'
[line 135]
Constant for the name of the Web browser.
BROWSER_NOKIA = 'Nokia Browser'
[line 136]
Constant for the name of the Web browser.
BROWSER_OMNIWEB = 'OmniWeb'
[line 137]
Constant for the name of the Web browser.
BROWSER_OPERA = 'Opera'
[line 138]
Constant for the name of the Web browser.
BROWSER_OPERA_MINI = 'Opera Mini'
[line 139]
Constant for the name of the Web browser.
BROWSER_OPERA_MOBILE = 'Opera Mobile'
[line 140]
Constant for the name of the Web browser.
BROWSER_PHOENIX = 'Phoenix'
[line 141]
Constant for the name of the Web browser.
BROWSER_SAFARI = 'Safari'
[line 142]
Constant for the name of the Web browser.
BROWSER_SAMSUNG = 'Samsung Internet'
[line 143]
Constant for the name of the Web browser.
BROWSER_SLURP = 'Yahoo! Slurp'
[line 144]
Constant for the name of the Web browser.
BROWSER_TABLET_OS = 'BlackBerry Tablet OS'
[line 145]
Constant for the name of the Web browser.
BROWSER_UNKNOWN = 'unknown'
[line 146]
Constant for the name of the Web browser.
BROWSER_VIVALDI = 'Vivaldi'
[line 147]
Constant for the name of the Web browser.
BROWSER_W3CVALIDATOR = 'W3C Validator'
[line 148]
Constant for the name of the Web browser.
BROWSER_YAHOO_MM = 'Yahoo! Multimedia'
[line 149]
Constant for the name of the Web browser.
PLATFORM_ANDROID = 'Android'
[line 155]
Constant for the name of the platform of the Web browser.
PLATFORM_BEOS = 'BeOS'
[line 156]
Constant for the name of the platform of the Web browser.
PLATFORM_BLACKBERRY = 'BlackBerry'
[line 157]
Constant for the name of the platform of the Web browser.
PLATFORM_FREEBSD = 'FreeBSD'
[line 158]
Constant for the name of the platform of the Web browser.
PLATFORM_IPAD = 'iPad'
[line 159]
Constant for the name of the platform of the Web browser.
PLATFORM_IPHONE = 'iPhone'
[line 160]
Constant for the name of the platform of the Web browser.
PLATFORM_IPOD = 'iPod'
[line 161]
Constant for the name of the platform of the Web browser.
PLATFORM_LINUX = 'Linux'
[line 162]
Constant for the name of the platform of the Web browser.
PLATFORM_MACINTOSH = 'Macintosh'
[line 163]
Constant for the name of the platform of the Web browser.
PLATFORM_NETBSD = 'NetBSD'
[line 164]
Constant for the name of the platform of the Web browser.
PLATFORM_NOKIA = 'Nokia'
[line 165]
Constant for the name of the platform of the Web browser.
PLATFORM_OPENBSD = 'OpenBSD'
[line 166]
Constant for the name of the platform of the Web browser.
PLATFORM_OPENSOLARIS = 'OpenSolaris'
[line 167]
Constant for the name of the platform of the Web browser.
PLATFORM_OS2 = 'OS/2'
[line 168]
Constant for the name of the platform of the Web browser.
PLATFORM_SUNOS = 'SunOS'
[line 169]
Constant for the name of the platform of the Web browser.
PLATFORM_SYMBIAN = 'Symbian'
[line 170]
Constant for the name of the platform of the Web browser.
PLATFORM_UNKNOWN = 'unknown'
[line 171]
Constant for the name of the platform of the Web browser.
PLATFORM_VERSION_UNKNOWN = 'unknown'
[line 172]
Constant for the name of the platform of the Web browser.
PLATFORM_WINDOWS = 'Windows'
[line 173]
Constant for the name of the platform of the Web browser.
PLATFORM_WINDOWS_CE = 'Windows CE'
[line 174]
Constant for the name of the platform of the Web browser.
PLATFORM_WINDOWS_PHONE = 'Windows Phone'
[line 175]
Constant for the name of the platform of the Web browser.
VERSION_UNKNOWN = 'unknown'
[line 181]
Version unknown constant.