Skip to content

Commit fc000bf

Browse files
committed
Add ->robot() to readme
1 parent e130cdb commit fc000bf

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,23 +108,23 @@ $languages = $agent->languages();
108108
Get the device name, if mobile. (iPhone, Nexus, AsusTablet, ...)
109109

110110
```php
111-
$agent->device();
111+
$device = $agent->device();
112112
```
113113

114114
### Operating system name
115115

116116
Get the operating system. (Ubuntu, Windows, OS X, ...)
117117

118118
```php
119-
$agent->platform();
119+
$agent = $agent->platform();
120120
```
121121

122122
### Browser name
123123

124124
Get the browser name. (Chrome, IE, Safari, Firefox, ...)
125125

126126
```php
127-
$agent->browser();
127+
$browser = $agent->browser();
128128
```
129129

130130
### Desktop detection
@@ -145,6 +145,14 @@ Check if the user is a robot.
145145
$agent->isRobot();
146146
```
147147

148+
### Robot name
149+
150+
Get the robot name. Note: this currently only works for mayor robots like Google, Facebook, Twitter, Bing, Baidu, ...
151+
152+
```php
153+
$robot = $agent->robot();
154+
```
155+
148156
### Browser/platform version
149157

150158
MobileDetect recently added a `version` method that can get the version number for components. To get the browser or platform version you can use:

0 commit comments

Comments
 (0)