\DetectionMobileDetect

Mobile Detect Library Motto: "Every business should have a mobile detection script to detect mobile readers"

Mobile_Detect is a lightweight PHP class for detecting mobile devices (including tablets). It uses the User-Agent string combined with specific HTTP headers to detect the mobile environment.

Homepage: http://mobiledetect.net GitHub: https://github.com/serbanghita/Mobile-Detect README: https://github.com/serbanghita/Mobile-Detect/blob/master/README.md CONTRIBUTING: https://github.com/serbanghita/Mobile-Detect/blob/master/docs/CONTRIBUTING.md KNOWN LIMITATIONS: https://github.com/serbanghita/Mobile-Detect/blob/master/docs/KNOWN_LIMITATIONS.md EXAMPLES: https://github.com/serbanghita/Mobile-Detect/wiki/Code-examples

Summary

Methods
Properties
Constants
__construct()
getScriptVersion()
setHttpHeaders()
getHttpHeaders()
getHttpHeader()
getMobileHeaders()
getUaHttpHeaders()
setCfHeaders()
getCfHeaders()
setUserAgent()
getUserAgent()
setDetectionType()
getMatchingRegex()
getMatchesArray()
getPhoneDevices()
getTabletDevices()
getUserAgents()
getBrowsers()
getUtilities()
getMobileDetectionRules()
getMobileDetectionRulesExtended()
getRules()
getOperatingSystems()
checkHttpHeadersForMobile()
__call()
isMobile()
isTablet()
is()
match()
getProperties()
prepareVersionNo()
version()
mobileGrade()
isiPhone()
isBlackBerry()
isPixel()
isHTC()
isNexus()
isDell()
isMotorola()
isSamsung()
isLG()
isSony()
isAsus()
isXiaomi()
isNokiaLumia()
isMicromax()
isPalm()
isVertu()
isPantech()
isFly()
isWiko()
isiMobile()
isSimValley()
isWolfgang()
isAlcatel()
isNintendo()
isAmoi()
isINQ()
isOnePlus()
isGenericPhone()
isiPad()
isNexusTablet()
isGoogleTablet()
isSamsungTablet()
isKindle()
isSurfaceTablet()
isHPTablet()
isAsusTablet()
isBlackBerryTablet()
isHTCtablet()
isMotorolaTablet()
isNookTablet()
isAcerTablet()
isToshibaTablet()
isLGTablet()
isFujitsuTablet()
isPrestigioTablet()
isLenovoTablet()
isDellTablet()
isYarvikTablet()
isMedionTablet()
isArnovaTablet()
isIntensoTablet()
isIRUTablet()
isMegafonTablet()
isEbodaTablet()
isAllViewTablet()
isArchosTablet()
isAinolTablet()
isNokiaLumiaTablet()
isSonyTablet()
isPhilipsTablet()
isCubeTablet()
isCobyTablet()
isMIDTablet()
isMSITablet()
isSMiTTablet()
isRockChipTablet()
isFlyTablet()
isbqTablet()
isHuaweiTablet()
isNecTablet()
isPantechTablet()
isBronchoTablet()
isVersusTablet()
isZyncTablet()
isPositivoTablet()
isNabiTablet()
isKoboTablet()
isDanewTablet()
isTexetTablet()
isPlaystationTablet()
isTrekstorTablet()
isPyleAudioTablet()
isAdvanTablet()
isDanyTechTablet()
isGalapadTablet()
isMicromaxTablet()
isKarbonnTablet()
isAllFineTablet()
isPROSCANTablet()
isYONESTablet()
isChangJiaTablet()
isGUTablet()
isPointOfViewTablet()
isOvermaxTablet()
isHCLTablet()
isDPSTablet()
isVistureTablet()
isCrestaTablet()
isMediatekTablet()
isConcordeTablet()
isGoCleverTablet()
isModecomTablet()
isVoninoTablet()
isECSTablet()
isStorexTablet()
isVodafoneTablet()
isEssentielBTablet()
isRossMoorTablet()
isiMobileTablet()
isTolinoTablet()
isAudioSonicTablet()
isAMPETablet()
isSkkTablet()
isTecnoTablet()
isJXDTablet()
isiJoyTablet()
isFX2Tablet()
isXoroTablet()
isViewsonicTablet()
isVerizonTablet()
isOdysTablet()
isCaptivaTablet()
isIconbitTablet()
isTeclastTablet()
isOndaTablet()
isJaytechTablet()
isBlaupunktTablet()
isDigmaTablet()
isEvolioTablet()
isLavaTablet()
isAocTablet()
isMpmanTablet()
isCelkonTablet()
isWolderTablet()
isMediacomTablet()
isMiTablet()
isNibiruTablet()
isNexoTablet()
isLeaderTablet()
isUbislateTablet()
isPocketBookTablet()
isKocasoTablet()
isHisenseTablet()
isHudl()
isTelstraTablet()
isGenericTablet()
isAndroidOS()
isBlackBerryOS()
isPalmOS()
isSymbianOS()
isWindowsMobileOS()
isWindowsPhoneOS()
isiOS()
isiPadOS()
isSailfishOS()
isMeeGoOS()
isMaemoOS()
isJavaOS()
iswebOS()
isbadaOS()
isBREWOS()
isChrome()
isDolfin()
isOpera()
isSkyfire()
isEdge()
isIE()
isFirefox()
isBolt()
isTeaShark()
isBlazer()
isSafari()
isWeChat()
isUCBrowser()
isbaiduboxapp()
isbaidubrowser()
isDiigoBrowser()
isMercury()
isObigoBrowser()
isNetFront()
isGenericBrowser()
isPaleMoon()
isBot()
isMobileBot()
isDesktopMode()
isTV()
isWebKit()
isConsole()
isWatch()
No public properties found
DETECTION_TYPE_MOBILE
DETECTION_TYPE_EXTENDED
VER
MOBILE_GRADE_A
MOBILE_GRADE_B
MOBILE_GRADE_C
VERSION
VERSION_TYPE_STRING
VERSION_TYPE_FLOAT
matchDetectionRulesAgainstUA()
matchUAAgainstKey()
$cache
$userAgent
$httpHeaders
$cloudfrontHeaders
$matchingRegex
$matchesArray
$detectionType
$mobileHeaders
$phoneDevices
$tabletDevices
$operatingSystems
$browsers
$utilities
$uaHttpHeaders
$properties
N/A
prepareUserAgent()
No private properties found
N/A

Constants

DETECTION_TYPE_MOBILE

DETECTION_TYPE_MOBILE = 'mobile'

Mobile detection type.

DETECTION_TYPE_EXTENDED

DETECTION_TYPE_EXTENDED = 'extended'

Extended detection type.

VER

VER = '([\\w._\\+]+)'

A frequently used regular expression to extract version #s.

MOBILE_GRADE_A

MOBILE_GRADE_A = 'A'

Top-level device.

MOBILE_GRADE_B

MOBILE_GRADE_B = 'B'

Mid-level device.

MOBILE_GRADE_C

MOBILE_GRADE_C = 'C'

Low-level device.

VERSION

VERSION = '2.8.41'

Stores the version number of the current release.

VERSION_TYPE_STRING

VERSION_TYPE_STRING = 'text'

A type for the version() method indicating a string return value.

VERSION_TYPE_FLOAT

VERSION_TYPE_FLOAT = 'float'

A type for the version() method indicating a float return value.

Properties

$cache

$cache : array

A cache for resolved matches

Type

array

$userAgent

$userAgent : string

The User-Agent HTTP header is stored in here.

Type

string

$httpHeaders

$httpHeaders : array

HTTP headers in the PHP-flavor. So HTTP_USER_AGENT and SERVER_SOFTWARE.

Type

array

$cloudfrontHeaders

$cloudfrontHeaders : array

CloudFront headers. E.g. CloudFront-Is-Desktop-Viewer, CloudFront-Is-Mobile-Viewer & CloudFront-Is-Tablet-Viewer.

Type

array

$matchingRegex

$matchingRegex : string

The matching Regex.

This is good for debug.

Type

string

$matchesArray

$matchesArray : string

The matches extracted from the regex expression.

This is good for debug.

Type

string

$detectionType

$detectionType : string

The detection type, using self::DETECTION_TYPE_MOBILE or self::DETECTION_TYPE_EXTENDED.

Type

string

$mobileHeaders

$mobileHeaders : array

HTTP headers that trigger the 'isMobile' detection to be true.

Type

array

$phoneDevices

$phoneDevices : array

List of mobile devices (phones).

Type

array

$tabletDevices

$tabletDevices : array

List of tablet devices.

Type

array

$operatingSystems

$operatingSystems : array

List of mobile Operating Systems.

Type

array

$browsers

$browsers : array

List of mobile User Agents.

IMPORTANT: This is a list of only mobile browsers. Mobile Detect 2.x supports only mobile browsers, it was never designed to detect all browsers. The change will come in 2017 in the 3.x release for PHP7.

Type

array

$utilities

$utilities : array

Utilities.

Type

array

$uaHttpHeaders

$uaHttpHeaders : array

All possible HTTP headers that represent the User-Agent string.

Type

array

$properties

$properties : array

The individual segments that could exist in a User-Agent string. VER refers to the regular expression defined in the constant self::VER.

Type

array

Methods

__construct()

__construct(array  $headers = null, string  $userAgent = null) : mixed

Construct an instance of this class.

Parameters

array $headers

Specify the headers as injection. Should be PHP _SERVER flavored. If left empty, will use the global SERVER['HTTP*'] vars instead.

string $userAgent

Inject the User-Agent header. If null, will use HTTP_USER_AGENT from the $headers array instead.

Returns

mixed —

getScriptVersion()

getScriptVersion() : string

Get the current script version.

This is useful for the demo.php file, so people can check on what version they are testing for mobile devices.

Returns

string —

The version number in semantic version format.

setHttpHeaders()

setHttpHeaders(array  $httpHeaders = null) : mixed

Set the HTTP Headers. Must be PHP-flavored. This method will reset existing headers.

Parameters

array $httpHeaders

The headers to set. If null, then using PHP's _SERVER to extract the headers. The default null is left for backwards compatibility.

Returns

mixed —

getHttpHeaders()

getHttpHeaders() : array

Retrieves the HTTP headers.

Returns

array —

getHttpHeader()

getHttpHeader(string  $header) : string|null

Retrieves a particular header. If it doesn't exist, no exception/error is caused.

Simply null is returned.

Parameters

string $header

The name of the header to retrieve. Can be HTTP compliant such as "User-Agent" or "X-Device-User-Agent" or can be php-esque with the all-caps, HTTP_ prefixed, underscore separated awesomeness.

Returns

string|null —

The value of the header.

getMobileHeaders()

getMobileHeaders() : mixed

Returns

mixed —

getUaHttpHeaders()

getUaHttpHeaders() : array

Get all possible HTTP headers that can contain the User-Agent string.

Returns

array —

List of HTTP headers.

setCfHeaders()

setCfHeaders(array  $cfHeaders = null) : bool

Set CloudFront headers http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/header-caching.html#header-caching-web-device

Parameters

array $cfHeaders

List of HTTP headers

Returns

bool —

If there were CloudFront headers to be set

getCfHeaders()

getCfHeaders() : array

Retrieves the cloudfront headers.

Returns

array —

setUserAgent()

setUserAgent(string  $userAgent = null) : string|null

Set the User-Agent to be used.

Parameters

string $userAgent

The user agent string to set.

Returns

string|null —

getUserAgent()

getUserAgent() : string|null

Retrieve the User-Agent.

Returns

string|null —

The user agent if it's set.

setDetectionType()

setDetectionType(string  $type = null) : mixed

Set the detection type. Must be one of self::DETECTION_TYPE_MOBILE or self::DETECTION_TYPE_EXTENDED. Otherwise, nothing is set.

Parameters

string $type

The type. Must be a self::DETECTION_TYPE_* constant. The default parameter is null which will default to self::DETECTION_TYPE_MOBILE.

Returns

mixed —

getMatchingRegex()

getMatchingRegex() : mixed

Returns

mixed —

getMatchesArray()

getMatchesArray() : mixed

Returns

mixed —

getPhoneDevices()

getPhoneDevices() : array

Retrieve the list of known phone devices.

Returns

array —

List of phone devices.

getTabletDevices()

getTabletDevices() : array

Retrieve the list of known tablet devices.

Returns

array —

List of tablet devices.

getUserAgents()

getUserAgents() : array

Alias for getBrowsers() method.

Returns

array —

List of user agents.

getBrowsers()

getBrowsers() : array

Retrieve the list of known browsers. Specifically, the user agents.

Returns

array —

List of browsers / user agents.

getUtilities()

getUtilities() : array

Retrieve the list of known utilities.

Returns

array —

List of utilities.

getMobileDetectionRules()

getMobileDetectionRules() : array

Method gets the mobile detection rules. This method is used for the magic methods $detect->is*().

Returns

array —

All the rules (but not extended).

getMobileDetectionRulesExtended()

getMobileDetectionRulesExtended() : array

Method gets the mobile detection rules + utilities.

The reason this is separate is because utilities rules don't necessary imply mobile. This method is used inside the new $detect->is('stuff') method.

Returns

array —

All the rules + extended.

getRules()

getRules() : array

Retrieve the current set of rules.

Returns

array —

getOperatingSystems()

getOperatingSystems() : array

Retrieve the list of mobile operating systems.

Returns

array —

The list of mobile operating systems.

checkHttpHeadersForMobile()

checkHttpHeadersForMobile() : bool

Check the HTTP headers for signs of mobile.

This is the fastest mobile check possible; it's used inside isMobile() method.

Returns

bool —

__call()

__call(string  $name, array  $arguments) : mixed

Magic overloading method.

Parameters

string $name
array $arguments

Throws

\BadMethodCallException

when the method doesn't exist and doesn't start with 'is'

Returns

mixed —

isMobile()

isMobile(null  $userAgent = null, null  $httpHeaders = null) : bool

Check if the device is mobile.

Returns true if any type of mobile device detected, including special ones

Parameters

null $userAgent

deprecated

null $httpHeaders

deprecated

Returns

bool —

isTablet()

isTablet(string  $userAgent = null, array  $httpHeaders = null) : bool

Check if the device is a tablet.

Return true if any type of tablet device is detected.

Parameters

string $userAgent

deprecated

array $httpHeaders

deprecated

Returns

bool —

is()

is(string  $key, string  $userAgent = null, string  $httpHeaders = null) : bool|int|null

This method checks for a certain property in the userAgent.

Parameters

string $key
string $userAgent

deprecated

string $httpHeaders

deprecated

Returns

bool|int|null —

match()

match( $regex, string  $userAgent = null) : bool

Some detection rules are relative (not standard), because of the diversity of devices, vendors and their conventions in representing the User-Agent or the HTTP headers.

This method will be used to check custom regexes against the User-Agent string.

Parameters

$regex
string $userAgent

Returns

bool —

getProperties()

getProperties() : array

Get the properties array.

Returns

array —

prepareVersionNo()

prepareVersionNo(string  $ver) : float

Prepare the version number.

Parameters

string $ver

The string version, like "2.6.21.2152";

Returns

float —

version()

version(string  $propertyName, string  $type = self::VERSION_TYPE_STRING) : string|float|false

Check the version of the given property in the User-Agent.

Will return a float number. (eg. 2_0 will return 2.0, 4.3.1 will return 4.31)

Parameters

string $propertyName

The name of the property. See self::getProperties() array keys for all possible properties.

string $type

Either self::VERSION_TYPE_STRING to get a string value or self::VERSION_TYPE_FLOAT indicating a float value. This parameter is optional and defaults to self::VERSION_TYPE_STRING. Passing an invalid parameter will default to the this type as well.

Returns

string|float|false —

The version of the property we are trying to extract.

mobileGrade()

mobileGrade() : string

Retrieve the mobile grading, using self::MOBILE_GRADE_* constants.

Returns

string —

One of the self::MOBILE_GRADE_* constants.

isiPhone()

isiPhone() : bool

Returns

bool —

isBlackBerry()

isBlackBerry() : bool

Returns

bool —

isPixel()

isPixel() : bool

Returns

bool —

isHTC()

isHTC() : bool

Returns

bool —

isNexus()

isNexus() : bool

Returns

bool —

isDell()

isDell() : bool

Returns

bool —

isMotorola()

isMotorola() : bool

Returns

bool —

isSamsung()

isSamsung() : bool

Returns

bool —

isLG()

isLG() : bool

Returns

bool —

isSony()

isSony() : bool

Returns

bool —

isAsus()

isAsus() : bool

Returns

bool —

isXiaomi()

isXiaomi() : bool

Returns

bool —

isNokiaLumia()

isNokiaLumia() : bool

Returns

bool —

isMicromax()

isMicromax() : bool

Returns

bool —

isPalm()

isPalm() : bool

Returns

bool —

isVertu()

isVertu() : bool

Returns

bool —

isPantech()

isPantech() : bool

Returns

bool —

isFly()

isFly() : bool

Returns

bool —

isWiko()

isWiko() : bool

Returns

bool —

isiMobile()

isiMobile() : bool

Returns

bool —

isSimValley()

isSimValley() : bool

Returns

bool —

isWolfgang()

isWolfgang() : bool

Returns

bool —

isAlcatel()

isAlcatel() : bool

Returns

bool —

isNintendo()

isNintendo() : bool

Returns

bool —

isAmoi()

isAmoi() : bool

Returns

bool —

isINQ()

isINQ() : bool

Returns

bool —

isOnePlus()

isOnePlus() : bool

Returns

bool —

isGenericPhone()

isGenericPhone() : bool

Returns

bool —

isiPad()

isiPad() : bool

Returns

bool —

isNexusTablet()

isNexusTablet() : bool

Returns

bool —

isGoogleTablet()

isGoogleTablet() : bool

Returns

bool —

isSamsungTablet()

isSamsungTablet() : bool

Returns

bool —

isKindle()

isKindle() : bool

Returns

bool —

isSurfaceTablet()

isSurfaceTablet() : bool

Returns

bool —

isHPTablet()

isHPTablet() : bool

Returns

bool —

isAsusTablet()

isAsusTablet() : bool

Returns

bool —

isBlackBerryTablet()

isBlackBerryTablet() : bool

Returns

bool —

isHTCtablet()

isHTCtablet() : bool

Returns

bool —

isMotorolaTablet()

isMotorolaTablet() : bool

Returns

bool —

isNookTablet()

isNookTablet() : bool

Returns

bool —

isAcerTablet()

isAcerTablet() : bool

Returns

bool —

isToshibaTablet()

isToshibaTablet() : bool

Returns

bool —

isLGTablet()

isLGTablet() : bool

Returns

bool —

isFujitsuTablet()

isFujitsuTablet() : bool

Returns

bool —

isPrestigioTablet()

isPrestigioTablet() : bool

Returns

bool —

isLenovoTablet()

isLenovoTablet() : bool

Returns

bool —

isDellTablet()

isDellTablet() : bool

Returns

bool —

isYarvikTablet()

isYarvikTablet() : bool

Returns

bool —

isMedionTablet()

isMedionTablet() : bool

Returns

bool —

isArnovaTablet()

isArnovaTablet() : bool

Returns

bool —

isIntensoTablet()

isIntensoTablet() : bool

Returns

bool —

isIRUTablet()

isIRUTablet() : bool

Returns

bool —

isMegafonTablet()

isMegafonTablet() : bool

Returns

bool —

isEbodaTablet()

isEbodaTablet() : bool

Returns

bool —

isAllViewTablet()

isAllViewTablet() : bool

Returns

bool —

isArchosTablet()

isArchosTablet() : bool

Returns

bool —

isAinolTablet()

isAinolTablet() : bool

Returns

bool —

isNokiaLumiaTablet()

isNokiaLumiaTablet() : bool

Returns

bool —

isSonyTablet()

isSonyTablet() : bool

Returns

bool —

isPhilipsTablet()

isPhilipsTablet() : bool

Returns

bool —

isCubeTablet()

isCubeTablet() : bool

Returns

bool —

isCobyTablet()

isCobyTablet() : bool

Returns

bool —

isMIDTablet()

isMIDTablet() : bool

Returns

bool —

isMSITablet()

isMSITablet() : bool

Returns

bool —

isSMiTTablet()

isSMiTTablet() : bool

Returns

bool —

isRockChipTablet()

isRockChipTablet() : bool

Returns

bool —

isFlyTablet()

isFlyTablet() : bool

Returns

bool —

isbqTablet()

isbqTablet() : bool

Returns

bool —

isHuaweiTablet()

isHuaweiTablet() : bool

Returns

bool —

isNecTablet()

isNecTablet() : bool

Returns

bool —

isPantechTablet()

isPantechTablet() : bool

Returns

bool —

isBronchoTablet()

isBronchoTablet() : bool

Returns

bool —

isVersusTablet()

isVersusTablet() : bool

Returns

bool —

isZyncTablet()

isZyncTablet() : bool

Returns

bool —

isPositivoTablet()

isPositivoTablet() : bool

Returns

bool —

isNabiTablet()

isNabiTablet() : bool

Returns

bool —

isKoboTablet()

isKoboTablet() : bool

Returns

bool —

isDanewTablet()

isDanewTablet() : bool

Returns

bool —

isTexetTablet()

isTexetTablet() : bool

Returns

bool —

isPlaystationTablet()

isPlaystationTablet() : bool

Returns

bool —

isTrekstorTablet()

isTrekstorTablet() : bool

Returns

bool —

isPyleAudioTablet()

isPyleAudioTablet() : bool

Returns

bool —

isAdvanTablet()

isAdvanTablet() : bool

Returns

bool —

isDanyTechTablet()

isDanyTechTablet() : bool

Returns

bool —

isGalapadTablet()

isGalapadTablet() : bool

Returns

bool —

isMicromaxTablet()

isMicromaxTablet() : bool

Returns

bool —

isKarbonnTablet()

isKarbonnTablet() : bool

Returns

bool —

isAllFineTablet()

isAllFineTablet() : bool

Returns

bool —

isPROSCANTablet()

isPROSCANTablet() : bool

Returns

bool —

isYONESTablet()

isYONESTablet() : bool

Returns

bool —

isChangJiaTablet()

isChangJiaTablet() : bool

Returns

bool —

isGUTablet()

isGUTablet() : bool

Returns

bool —

isPointOfViewTablet()

isPointOfViewTablet() : bool

Returns

bool —

isOvermaxTablet()

isOvermaxTablet() : bool

Returns

bool —

isHCLTablet()

isHCLTablet() : bool

Returns

bool —

isDPSTablet()

isDPSTablet() : bool

Returns

bool —

isVistureTablet()

isVistureTablet() : bool

Returns

bool —

isCrestaTablet()

isCrestaTablet() : bool

Returns

bool —

isMediatekTablet()

isMediatekTablet() : bool

Returns

bool —

isConcordeTablet()

isConcordeTablet() : bool

Returns

bool —

isGoCleverTablet()

isGoCleverTablet() : bool

Returns

bool —

isModecomTablet()

isModecomTablet() : bool

Returns

bool —

isVoninoTablet()

isVoninoTablet() : bool

Returns

bool —

isECSTablet()

isECSTablet() : bool

Returns

bool —

isStorexTablet()

isStorexTablet() : bool

Returns

bool —

isVodafoneTablet()

isVodafoneTablet() : bool

Returns

bool —

isEssentielBTablet()

isEssentielBTablet() : bool

Returns

bool —

isRossMoorTablet()

isRossMoorTablet() : bool

Returns

bool —

isiMobileTablet()

isiMobileTablet() : bool

Returns

bool —

isTolinoTablet()

isTolinoTablet() : bool

Returns

bool —

isAudioSonicTablet()

isAudioSonicTablet() : bool

Returns

bool —

isAMPETablet()

isAMPETablet() : bool

Returns

bool —

isSkkTablet()

isSkkTablet() : bool

Returns

bool —

isTecnoTablet()

isTecnoTablet() : bool

Returns

bool —

isJXDTablet()

isJXDTablet() : bool

Returns

bool —

isiJoyTablet()

isiJoyTablet() : bool

Returns

bool —

isFX2Tablet()

isFX2Tablet() : bool

Returns

bool —

isXoroTablet()

isXoroTablet() : bool

Returns

bool —

isViewsonicTablet()

isViewsonicTablet() : bool

Returns

bool —

isVerizonTablet()

isVerizonTablet() : bool

Returns

bool —

isOdysTablet()

isOdysTablet() : bool

Returns

bool —

isCaptivaTablet()

isCaptivaTablet() : bool

Returns

bool —

isIconbitTablet()

isIconbitTablet() : bool

Returns

bool —

isTeclastTablet()

isTeclastTablet() : bool

Returns

bool —

isOndaTablet()

isOndaTablet() : bool

Returns

bool —

isJaytechTablet()

isJaytechTablet() : bool

Returns

bool —

isBlaupunktTablet()

isBlaupunktTablet() : bool

Returns

bool —

isDigmaTablet()

isDigmaTablet() : bool

Returns

bool —

isEvolioTablet()

isEvolioTablet() : bool

Returns

bool —

isLavaTablet()

isLavaTablet() : bool

Returns

bool —

isAocTablet()

isAocTablet() : bool

Returns

bool —

isMpmanTablet()

isMpmanTablet() : bool

Returns

bool —

isCelkonTablet()

isCelkonTablet() : bool

Returns

bool —

isWolderTablet()

isWolderTablet() : bool

Returns

bool —

isMediacomTablet()

isMediacomTablet() : bool

Returns

bool —

isMiTablet()

isMiTablet() : bool

Returns

bool —

isNibiruTablet()

isNibiruTablet() : bool

Returns

bool —

isNexoTablet()

isNexoTablet() : bool

Returns

bool —

isLeaderTablet()

isLeaderTablet() : bool

Returns

bool —

isUbislateTablet()

isUbislateTablet() : bool

Returns

bool —

isPocketBookTablet()

isPocketBookTablet() : bool

Returns

bool —

isKocasoTablet()

isKocasoTablet() : bool

Returns

bool —

isHisenseTablet()

isHisenseTablet() : bool

Returns

bool —

isHudl()

isHudl() : bool

Returns

bool —

isTelstraTablet()

isTelstraTablet() : bool

Returns

bool —

isGenericTablet()

isGenericTablet() : bool

Returns

bool —

isAndroidOS()

isAndroidOS() : bool

Returns

bool —

isBlackBerryOS()

isBlackBerryOS() : bool

Returns

bool —

isPalmOS()

isPalmOS() : bool

Returns

bool —

isSymbianOS()

isSymbianOS() : bool

Returns

bool —

isWindowsMobileOS()

isWindowsMobileOS() : bool

Returns

bool —

isWindowsPhoneOS()

isWindowsPhoneOS() : bool

Returns

bool —

isiOS()

isiOS() : bool

Returns

bool —

isiPadOS()

isiPadOS() : bool

Returns

bool —

isSailfishOS()

isSailfishOS() : bool

Returns

bool —

isMeeGoOS()

isMeeGoOS() : bool

Returns

bool —

isMaemoOS()

isMaemoOS() : bool

Returns

bool —

isJavaOS()

isJavaOS() : bool

Returns

bool —

iswebOS()

iswebOS() : bool

Returns

bool —

isbadaOS()

isbadaOS() : bool

Returns

bool —

isBREWOS()

isBREWOS() : bool

Returns

bool —

isChrome()

isChrome() : bool

Returns

bool —

isDolfin()

isDolfin() : bool

Returns

bool —

isOpera()

isOpera() : bool

Returns

bool —

isSkyfire()

isSkyfire() : bool

Returns

bool —

isEdge()

isEdge() : bool

Returns

bool —

isIE()

isIE() : bool

Returns

bool —

isFirefox()

isFirefox() : bool

Returns

bool —

isBolt()

isBolt() : bool

Returns

bool —

isTeaShark()

isTeaShark() : bool

Returns

bool —

isBlazer()

isBlazer() : bool

Returns

bool —

isSafari()

isSafari() : bool

Returns

bool —

isWeChat()

isWeChat() : bool

Returns

bool —

isUCBrowser()

isUCBrowser() : bool

Returns

bool —

isbaiduboxapp()

isbaiduboxapp() : bool

Returns

bool —

isbaidubrowser()

isbaidubrowser() : bool

Returns

bool —

isDiigoBrowser()

isDiigoBrowser() : bool

Returns

bool —

isMercury()

isMercury() : bool

Returns

bool —

isObigoBrowser()

isObigoBrowser() : bool

Returns

bool —

isNetFront()

isNetFront() : bool

Returns

bool —

isGenericBrowser()

isGenericBrowser() : bool

Returns

bool —

isPaleMoon()

isPaleMoon() : bool

Returns

bool —

isBot()

isBot() : bool

Returns

bool —

isMobileBot()

isMobileBot() : bool

Returns

bool —

isDesktopMode()

isDesktopMode() : bool

Returns

bool —

isTV()

isTV() : bool

Returns

bool —

isWebKit()

isWebKit() : bool

Returns

bool —

isConsole()

isConsole() : bool

Returns

bool —

isWatch()

isWatch() : bool

Returns

bool —

matchDetectionRulesAgainstUA()

matchDetectionRulesAgainstUA(null  $userAgent = null) : bool

Find a detection rule that matches the current User-agent.

Parameters

null $userAgent

deprecated

Returns

bool —

matchUAAgainstKey()

matchUAAgainstKey(string  $key) : bool

Search for a certain key in the rules array.

If the key is found then try to match the corresponding regex against the User-Agent.

Parameters

string $key

Returns

bool —

prepareUserAgent()

prepareUserAgent(string  $userAgent) : string

Parameters

string $userAgent

Returns

string —