Skip to content

Commit ac9c116

Browse files
chore(readme): Update ReadMe
1 parent 76bd67d commit ac9c116

File tree

1 file changed

+129
-1
lines changed

1 file changed

+129
-1
lines changed

README.md

Lines changed: 129 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,136 @@ To get started, you'll need to publish all vendor assets:
4242
```bash
4343
$ php artisan vendor:publish --provider="Unicodeveloper\Identify\IdentifyServiceProvider"
4444
```
45+
## Browser Detection
46+
47+
The browser method allows you to detect a user's browser and version.
48+
49+
### Browsers Detected
50+
51+
* Vivaldi
52+
* Opera
53+
* Opera Mini
54+
* WebTV
55+
* Internet Explorer
56+
* Pocket Internet Explorer
57+
* Microsoft Edge
58+
* Konqueror
59+
* iCab
60+
* OmniWeb
61+
* Firebird
62+
* Firefox
63+
* Iceweasel
64+
* Shiretoko
65+
* Mozilla
66+
* Amaya
67+
* Lynx
68+
* Safari
69+
* Chrome
70+
* Navigator
71+
* GoogleBot
72+
* Yahoo! Slurp
73+
* W3C Validator
74+
* BlackBerry
75+
* IceCat
76+
* Nokia S60 OSS Browser
77+
* Nokia Browser
78+
* MSN Browser
79+
* MSN Bot
80+
* Netscape Navigator
81+
* Galeon
82+
* NetPositive
83+
* Phoenix
84+
* SeaMonkey
85+
* Yandex Browser
86+
87+
### Usage
4588

46-
## Usage
89+
```php
90+
/**
91+
* Gets the version of the user's browser
92+
* @return string
93+
*/
94+
Identify::browser()->getVersion()
95+
96+
/**
97+
* Gets the name of the user's browser
98+
* @return string
99+
*/
100+
Identify::browser()->getName()
101+
```
102+
## OS Detection
103+
104+
The os method allows you to detect a user's operating system and version.
105+
106+
### OS Detected
107+
108+
* Windows
109+
* Windows Phone
110+
* OS X
111+
* iOS
112+
* Android
113+
* Chrome OS
114+
* Linux
115+
* SymbOS
116+
* Nokia
117+
* BlackBerry
118+
* FreeBSD
119+
* OpenBSD
120+
* NetBSD
121+
* OpenSolaris
122+
* SunOS
123+
* OS2
124+
* BeOS
125+
126+
### Usage
127+
128+
```php
129+
/**
130+
* Gets the version of the user's Operating System
131+
* @return string
132+
*/
133+
Identify::os()->getVersion()
134+
135+
/**
136+
* Gets the name of the user's Operating System
137+
* @return string
138+
*/
139+
Identify::os()->getName()
140+
```
141+
142+
## Device Detection
143+
144+
The device method allows you to detect a user's device.
145+
146+
### Device Detected
147+
148+
* iPad
149+
* iPhone
150+
* Windows Phone
151+
152+
### Usage
153+
154+
```php
155+
/**
156+
* Gets the name of the user's device
157+
* @return string
158+
*/
159+
Identify::device()->getName()
160+
```
161+
162+
## Language Detection
163+
164+
The language method allows you to detect a user's language.
165+
166+
### Usage
167+
168+
```php
169+
/**
170+
* Gets the language that the user's browser contents are displayed in
171+
* @return string
172+
*/
173+
Identify::lang()->getLanguage()
174+
```
47175

48176

49177
## Contributing

0 commit comments

Comments
 (0)