| Recommend this page to a friend! | 
| Info | Example | Reputation | Support forum | Blog | Links | 
| Ratings | Unique User Downloads | Download Rankings | ||||
| Total: 484 | All time:  5,925 This week: 38 | |||||
| Version | License | PHP version | Categories | |||
| php-useragent 1.0.2 | Custom (specified... | 5 | HTTP, PHP 5, Parsers | 
| Description | Author  | |
This class can parse the user agent string to get browser details.  | 
<?php | 

>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__ <[email protected]> 2013-2016
> 2.0.0
> 31 Jul 2016
Mobile Detecting.
2. System Archetecture ( 32bit Or 64bit ).
3. CPU Brand Detecting ( `Intel`, `AMD`, `PPC` ).
4. Platform Detecting for Desktop OS and Smart Phone OS.
5. Optimization : Client UserAgent Only Processed Once
6. Read Only Access Properties .
> UserAgent Class Uses namespace, and autoload will automatically load class when called.
>> include or requireuser_agent.php* file 
>> 
>> 			<?php
>> 				require_once('core/user_agent.php');
>> 				use Core\UserAgent;
>> 				$instance = new UserAgent();
>>
>> just require or include Suppliedautoload.php* file which will load any class 
>>
>>			<?php
>> 				require_once('core/autoload.php');
>> 				use Core\UserAgent;
>> 				$instance = new UserAgent();
$instance = new UserAgent():>
// Current Client Systen
$instance = new UserAgent();
>
// Custom UserAgent String
$instance = new UserAgent( 'custom user agent string here' );
$instance->string:> __String__ useragent string .
$instance->systemString:> __String__ system string .
$instance->browserName:> __String__ Browser Name __Google Chrome, Mozilla Firefox, Safari, Opera, Internet Explorer, Android Browser__ .
$instance->browserVersion:> __String__ Browser Version .
$instance->osPlatform:> __String__ OS Platform Name .
$instance->osVersion:> __String__ OS Version .
$instance->osShortVersion:> __String__ OS Short Version .
$instance->osArch:> __String__ OS bit Architecture __32 OR 64__ .
$instance->isIntel:> __Boolean__ Detect if System CPU is Intel .
$instance->isAMD:> __Boolean__ Detect if System CPU is AMD .
$instance->isPPC:> __Boolean__ Detect if System CPU is PowerPC .
$instance->isMobile:> __Boolean__ Detect if client device is Mobile Phone Or Tablet .
$instance->mobileName:> __String__ Mobile Device Name .
| / | core | 
| File | Role | Description | 
|---|---|---|
|    | 
Aux. | Auxiliary script | 
|    | 
Data | Documentation | 
|    | 
Class | Class source | 
| / | css | 
| File | Role | Description | 
|---|---|---|
|    | 
Data | Auxiliary data | 
|    | 
Data | Auxiliary data | 
|    | 
Data | Auxiliary data | 
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. | 
| Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
| 100% | 
  | 
  | 
| User Ratings | ||||||||||||||||||||||||||||||
  | ||||||||||||||||||||||||||||||
| Applications that use this package | 
 If you know an application of this package, send a message to the author to add a link here.