Oihana PHP System

DeviceType uses ConstantsTrait

Coarse-grained device classification derived from the request `User-Agent` string.

Used as the value of UserAgentInfo::$deviceType to drive routing, analytics and audit decisions that only need a high-level grouping rather than a full device fingerprint.

Tags
category

HTTP

author

Marc Alcaraz (ekameleon)

Table of Contents

Constants

BOT  : string = 'bot'
Bot, crawler or other automated agent (Googlebot, Bingbot, monitoring probes, headless test runners…).
DESKTOP  : string = 'desktop'
Desktop browser running on a laptop / workstation.
MOBILE  : string = 'mobile'
Handheld mobile device (smartphone form factor).
TABLET  : string = 'tablet'
Tablet device (iPad-class form factor).
UNKNOWN  : string = 'unknown'
Device family could not be determined from the User-Agent.

Constants

BOT

Bot, crawler or other automated agent (Googlebot, Bingbot, monitoring probes, headless test runners…).

public string BOT = 'bot'

DESKTOP

Desktop browser running on a laptop / workstation.

public string DESKTOP = 'desktop'

MOBILE

Handheld mobile device (smartphone form factor).

public string MOBILE = 'mobile'

TABLET

Tablet device (iPad-class form factor).

public string TABLET = 'tablet'

UNKNOWN

Device family could not be determined from the User-Agent.

public string UNKNOWN = 'unknown'
On this page

Search results