UserAgent
Class Analayse client user agent string by default, or a given user agent string and gives you very helpfull information about user system and browser.
This Work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
@author Ahmed Saad a7mad.sa3d.2014@gmail.com 2013-2016
2.0.0
31 Jul 2016
- Get System and Browser Information about your Visitor as the following:
- Smart Phones
Mobile
Detecting. - System Archetecture (
32bit
Or64bit
). - CPU Brand Detecting (
Intel
,AMD
,PPC
). Platform
Detecting forDesktop OS
andSmart Phone OS
.Optimization
: Client UserAgent Only Processed Once- Read Only Access Properties .
- Smart Phones
UserAgent Class Uses namespace, and autoload will automatically load class when called.
include
orrequire
user_agent.php file<?php require_once('core/user_agent.php'); use Core\UserAgent; $instance = new UserAgent();
just
require
orinclude
Supplied autoload.php file which will load any class<?php require_once('core/autoload.php'); use Core\UserAgent; $instance = new UserAgent();
// Current Client Systen
$instance = new UserAgent();
// Custom UserAgent String
$instance = new UserAgent( 'custom user agent string here' );
String useragent string .
String system string .
String Browser Name Google Chrome, Mozilla Firefox, Safari, Opera, Internet Explorer, Android Browser .
String Browser Version .
String OS Platform Name .
String OS Version .
String OS Short Version .
String OS bit Architecture 32 OR 64 .
Boolean Detect if System CPU is Intel .
Boolean Detect if System CPU is AMD .
Boolean Detect if System CPU is PowerPC .
Boolean Detect if client device is Mobile Phone Or Tablet .
String Mobile Device Name .