Documentation

BrowserDetector
in package
implements DetectorInterface

Table of Contents

Interfaces

DetectorInterface

Constants

FUNC_PREFIX  = 'checkBrowser'

Properties

$browser  : Browser
$browsersList  : mixed
$userAgentString  : mixed

Methods

checkBrowserAmaya()  : bool
Determine if the browser is Amaya.
checkBrowserAndroid()  : bool
Determine if the browser is Android.
checkBrowserBlackBerry()  : bool
Determine if the user is using a BlackBerry.
checkBrowserChrome()  : bool
Determine if the browser is Chrome.
checkBrowserDragon()  : bool
Determine if the browser is Comodo Dragon / Ice Dragon / Chromodo.
checkBrowserEdge()  : bool
Determine if the browser is Microsoft Edge.
checkBrowserFirebird()  : bool
Determine if the browser is Firebird.
checkBrowserFirefox()  : bool
Determine if the browser is Firefox.
checkBrowserGaleon()  : bool
Determine if the browser is Galeon.
checkBrowserGsa()  : bool
Determine if the browser is Google Search Appliance.
checkBrowserIcab()  : bool
Determine if the browser is iCab.
checkBrowserIceCat()  : bool
Determine if the browser is Ice Cat.
checkBrowserIceweasel()  : bool
Determine if the browser is Iceweasel.
checkBrowserInternetExplorer()  : bool
Determine if the browser is Internet Explorer.
checkBrowserKonqueror()  : bool
Determine if the browser is Konqueror.
checkBrowserLynx()  : bool
Determine if the browser is Lynx.
checkBrowserMozilla()  : bool
Determine if the browser is Mozilla.
checkBrowserNetPositive()  : bool
Determine if the browser is NetPositive.
checkBrowserNetscapeNavigator9Plus()  : bool
Determine if the browser is Netscape Navigator 9+.
checkBrowserNokia()  : bool
Determine if the browser is Nokia.
checkBrowserOmniWeb()  : bool
Determine if the browser is OmniWeb.
checkBrowserOpera()  : bool
Determine if the browser is Opera.
checkBrowserPhoenix()  : bool
Determine if the browser is Phoenix.
checkBrowserRobot()  : bool
Determine if the browser is a robot.
checkBrowserSafari()  : bool
Determine if the browser is Safari.
checkBrowserSamsung()  : bool
Determine if the browser is Samsung.
checkBrowserSeaMonkey()  : bool
Determine if the browser is SeaMonkey.
checkBrowserShiretoko()  : bool
Determine if the browser is Shiretoko.
checkBrowserVivaldi()  : bool
Determine if the browser is Vivaldi.
checkBrowserWebTv()  : bool
Determine if the browser is WebTv.
checkBrowserWkhtmltopdf()  : bool
Determine if the browser is Safari.
checkBrowserYandex()  : bool
Determine if the browser is Yandex.
checkChromeFrame()  : bool
Determine if the user is using Chrome Frame.
checkFacebookWebView()  : bool
Determine if the user is using Facebook.
detect()  : bool
Routine to determine the browser type.

Constants

Properties

$browsersList

protected static mixed $browsersList = array( // well-known, well-used // Special Notes: // (1) Opera must be checked before FireFox due to the odd // user agents used in some older versions of Opera // (2) WebTV is strapped onto Internet Explorer so we must // check for WebTV before IE // (3) Because of Internet Explorer 11 using // "Mozilla/5.0 ([...] Trident/7.0; rv:11.0) like Gecko" // as user agent, tests for IE must be run before any // tests checking for "Mozilla" // (4) (deprecated) Galeon is based on Firefox and needs to be // tested before Firefox is tested // (5) OmniWeb is based on Safari so OmniWeb check must occur // before Safari // (6) Netscape 9+ is based on Firefox so Netscape checks // before FireFox are necessary // (7) Microsoft Edge must be checked before Chrome and Safari // (7) Vivaldi must be checked before Chrome 'WebTv', 'InternetExplorer', 'Edge', 'Opera', 'Vivaldi', 'Dragon', 'Galeon', 'NetscapeNavigator9Plus', 'SeaMonkey', 'Firefox', 'Yandex', 'Samsung', 'Chrome', 'OmniWeb', // common mobile 'Android', 'BlackBerry', 'Nokia', 'Gsa', // common bots 'Robot', // wkhtmltopdf before Safari 'Wkhtmltopdf', // WebKit base check (post mobile and others) 'Safari', // everyone else 'NetPositive', 'Firebird', 'Konqueror', 'Icab', 'Phoenix', 'Amaya', 'Lynx', 'Shiretoko', 'IceCat', 'Iceweasel', 'Mozilla', )

Methods

checkBrowserAmaya()

Determine if the browser is Amaya.

public static checkBrowserAmaya() : bool
Return values
bool

checkBrowserAndroid()

Determine if the browser is Android.

public static checkBrowserAndroid() : bool
Return values
bool

checkBrowserBlackBerry()

Determine if the user is using a BlackBerry.

public static checkBrowserBlackBerry() : bool
Return values
bool

checkBrowserChrome()

Determine if the browser is Chrome.

public static checkBrowserChrome() : bool
Return values
bool

checkBrowserDragon()

Determine if the browser is Comodo Dragon / Ice Dragon / Chromodo.

public static checkBrowserDragon() : bool
Return values
bool

checkBrowserEdge()

Determine if the browser is Microsoft Edge.

public static checkBrowserEdge() : bool
Return values
bool

checkBrowserFirebird()

Determine if the browser is Firebird.

public static checkBrowserFirebird() : bool
Return values
bool

checkBrowserFirefox()

Determine if the browser is Firefox.

public static checkBrowserFirefox() : bool
Return values
bool

checkBrowserGaleon()

Determine if the browser is Galeon.

public static checkBrowserGaleon() : bool
Return values
bool

checkBrowserGsa()

Determine if the browser is Google Search Appliance.

public static checkBrowserGsa() : bool
Return values
bool

checkBrowserIcab()

Determine if the browser is iCab.

public static checkBrowserIcab() : bool
Return values
bool

checkBrowserIceCat()

Determine if the browser is Ice Cat.

public static checkBrowserIceCat() : bool
Return values
bool

checkBrowserIceweasel()

Determine if the browser is Iceweasel.

public static checkBrowserIceweasel() : bool
Return values
bool

checkBrowserInternetExplorer()

Determine if the browser is Internet Explorer.

public static checkBrowserInternetExplorer() : bool
Return values
bool

checkBrowserKonqueror()

Determine if the browser is Konqueror.

public static checkBrowserKonqueror() : bool
Return values
bool

checkBrowserLynx()

Determine if the browser is Lynx.

public static checkBrowserLynx() : bool
Return values
bool

checkBrowserMozilla()

Determine if the browser is Mozilla.

public static checkBrowserMozilla() : bool
Return values
bool

checkBrowserNetPositive()

Determine if the browser is NetPositive.

public static checkBrowserNetPositive() : bool
Return values
bool

checkBrowserNetscapeNavigator9Plus()

Determine if the browser is Netscape Navigator 9+.

public static checkBrowserNetscapeNavigator9Plus() : bool
Return values
bool

checkBrowserNokia()

Determine if the browser is Nokia.

public static checkBrowserNokia() : bool
Return values
bool

checkBrowserOmniWeb()

Determine if the browser is OmniWeb.

public static checkBrowserOmniWeb() : bool
Return values
bool

checkBrowserOpera()

Determine if the browser is Opera.

public static checkBrowserOpera() : bool
Return values
bool

checkBrowserPhoenix()

Determine if the browser is Phoenix.

public static checkBrowserPhoenix() : bool
Return values
bool

checkBrowserRobot()

Determine if the browser is a robot.

public static checkBrowserRobot() : bool
Return values
bool

checkBrowserSafari()

Determine if the browser is Safari.

public static checkBrowserSafari() : bool
Return values
bool

checkBrowserSamsung()

Determine if the browser is Samsung.

public static checkBrowserSamsung() : bool
Return values
bool

checkBrowserSeaMonkey()

Determine if the browser is SeaMonkey.

public static checkBrowserSeaMonkey() : bool
Return values
bool

checkBrowserShiretoko()

Determine if the browser is Shiretoko.

public static checkBrowserShiretoko() : bool
Return values
bool

checkBrowserVivaldi()

Determine if the browser is Vivaldi.

public static checkBrowserVivaldi() : bool
Return values
bool

checkBrowserWebTv()

Determine if the browser is WebTv.

public static checkBrowserWebTv() : bool
Return values
bool

checkBrowserWkhtmltopdf()

Determine if the browser is Safari.

public static checkBrowserWkhtmltopdf() : bool
Return values
bool

checkBrowserYandex()

Determine if the browser is Yandex.

public static checkBrowserYandex() : bool
Return values
bool

checkChromeFrame()

Determine if the user is using Chrome Frame.

public static checkChromeFrame() : bool
Return values
bool

checkFacebookWebView()

Determine if the user is using Facebook.

public static checkFacebookWebView() : bool
Return values
bool

        
On this page

Search results