File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
- # php-useragent-class
1
+ # PHP User Agent Class
2
2
PHP User Agent Class, used for the following
3
3
- Detect Browser and Version
4
4
- Detect Device (mobile,tablet,desktop,bot)
5
5
- Detect Operating System
6
6
- User Host
7
7
- User IP
8
8
- Detect ISP (UK Only)
9
- - inludes geoip fuctions (php_goip_exstention installed on server)
9
+ - inludes geoip fuctions (php_goip_exstention required and installed on server)
10
10
11
11
## Usage
12
12
``` php
13
13
$UA = new UserAgent;
14
14
15
15
echo $UA->IP(); // returns IP if detected
16
- echo $UA->Browser(); // returns browser name ie Chrome if detected
17
- echo $UA->OS(); // returns Operating System of Device if detected
16
+ echo $UA->Browser(); // returns browser name ie Chrome is detected
17
+ echo $UA->OS(); // returns Operating System of Device is detected
18
18
if($UA->isMobile()){
19
19
// if is mobile
20
20
}else{
You can’t perform that action at this time.
0 commit comments