You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To use the freegeoip as the driver set the config.
73
+
To use the ipstack as the driver set the config.
78
74
79
75
Example:
80
76
```php
81
77
$config = [
82
-
'driver' => 'freegeoip',
83
-
'freegeoip' => [
84
-
'secure' => true,
85
-
],
86
-
];
87
-
```
88
-
89
-
Custom install example:
90
-
```php
91
-
$config = [
92
-
'driver' => 'freegeoip',
93
-
'freegeoip' => [
94
-
'url' => 'freegeoip.example.com', // or with a port (freegeoip.example.com:8080)
95
-
'secure' => true, // or false
78
+
'driver' => 'ipstack',
79
+
'ipstack' => [
80
+
'key' => 'YOUR IPSTACK KEY',
96
81
],
97
82
];
98
83
```
@@ -107,9 +92,6 @@ $config = [
107
92
'driver' => 'ip-api',
108
93
'ip-api' => [
109
94
'key' => 'YOUR IP-API KEY',
110
-
111
-
// optionally set secure (https) connection (default: false)
112
-
'secure' => true
113
95
],
114
96
];
115
97
```
@@ -148,7 +130,7 @@ Example:
148
130
$config = [
149
131
'driver' => 'telize',
150
132
'telize' => [
151
-
'key' => 'YOUR IP-API KEY',
133
+
'key' => 'YOUR TELIZE KEY',
152
134
],
153
135
];
154
136
```
@@ -300,13 +282,13 @@ $geoipUpdater->update();
300
282
301
283
### Laravel
302
284
303
-
Once you have registered the service provider, you can use the command `php artisan geoip:update`
285
+
Once you have registered the service provider (supports auto discovery), you can use the command `php artisan geoip:update`
304
286
305
287
## Services
306
288
307
-
#### FreeGeoIP
289
+
#### IPStack
308
290
309
-
Freegeoip is a free service that can also be used instead of the database file or the paid maxmind service. They do have some limitations so please have a look at the [website](https://freegeoip.net/) first. You can also run a [custom install](https://github.com/fiorix/freegeoip) and use that instead.
291
+
IPStack offers a JSON IP and GeoIP REST API allowing to get a visitor IP address and to query location information from any IP address.
0 commit comments