TwistPHP Documentation

Device

File path: dist/twist/Core/Helpers/Device.helper.php
Namespace: Twist\Core\Helpers
Extends: Base

Type: Class

Device — Detect device related information from a user agent string, also can return logos and icons where applicable.

Example Usage

<?php
//Set the variables for the example
$strUserAgent null;

//Call the function getOSVersion with the example vars
Twist::Device() -> getOSVersion($strUserAgent);

Method List

Method Access Returns
getpublicvoid
getOSpublicvoid
getOSVersionpublicvoid
getDevicepublicvoid
getBrowserpublicvoid