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
This is the official Laravel client library for the [IPinfo.io](https://ipinfo.io) IP address API, allowing you to look up your own IP address, or get any of the following details for an IP:
4
-
-[IP geolocation](https://ipinfo.io/ip-geolocation-api) (city, region, country, postal code, latitude, and longitude)
5
-
-[ASN details](https://ipinfo.io/asn-api) (ISP or network operator, associated domain name, and type, such as business, hosting, or company)
6
-
-[Company information](https://ipinfo.io/ip-company-api) (the name and domain of the business that uses the IP address)
7
-
-[Carrier details](https://ipinfo.io/ip-carrier-api) (the name of the mobile carrier and MNC and MCC for that carrier if the IP is used exclusively for mobile traffic)
4
+
5
+
-[IP geolocation](https://ipinfo.io/ip-geolocation-api) (city, region, country, postal code, latitude, and longitude)
6
+
-[ASN details](https://ipinfo.io/asn-api) (ISP or network operator, associated domain name, and type, such as business, hosting, or company)
7
+
-[Company information](https://ipinfo.io/ip-company-api) (the name and domain of the business that uses the IP address)
8
+
-[Carrier details](https://ipinfo.io/ip-carrier-api) (the name of the mobile carrier and MNC and MCC for that carrier if the IP is used exclusively for mobile traffic)
8
9
9
10
Check all the data we have for your IP address [here](https://ipinfo.io/what-is-my-ip).
10
11
@@ -14,7 +15,7 @@ You'll need an IPinfo API access token, which you can get by signing up for a fr
14
15
15
16
The free plan is limited to 50,000 requests per month, and doesn't include some of the data fields such as IP type and company data. To enable all the data fields and additional request volumes see [https://ipinfo.io/pricing](https://ipinfo.io/pricing).
16
17
17
-
⚠️ Note: This library does not currently support our newest free APIhttps://ipinfo.io/lite. If you’d like to use IPinfo Lite, you can call the [endpoint directly](https://ipinfo.io/developers/lite-api)using your preferred HTTP client. Developers are also welcome to contribute support for Lite by submitting a pull request.
18
+
The library also supports the Lite API, see the [Lite API section](#lite-api) for more info.
18
19
19
20
#### Installation
20
21
@@ -122,8 +123,8 @@ In-memory caching of `Details` data is provided by default via Laravel's file-ba
122
123
123
124
Default cache TTL and maximum size can be changed by setting values in the `$settings` argument array.
124
125
125
-
* Default maximum cache size: 4096 (multiples of 2 are recommended to increase efficiency)
126
-
* Default TTL: 24 hours (in minutes)
126
+
- Default maximum cache size: 4096 (multiples of 2 are recommended to increase efficiency)
127
+
- Default TTL: 24 hours (in minutes)
127
128
128
129
```php
129
130
'ipinfo' => [
@@ -223,10 +224,10 @@ By default, `ipinfolaravel` filters out requests that have `bot` or `spider` in
223
224
],
224
225
```
225
226
226
-
To set your own filtering rules, *thereby replacing the default filter*, you can set `ipinfo.config` to your own, custom callable function which satisfies the following rules:
227
+
To set your own filtering rules, _thereby replacing the default filter_, you can set `ipinfo.config` to your own, custom callable function which satisfies the following rules:
227
228
228
-
* Accepts one request.
229
-
* Returns *True to filter out, False to allow lookup*
229
+
- Accepts one request.
230
+
- Returns _True to filter out, False to allow lookup_
230
231
231
232
To use your own filter function:
232
233
@@ -259,6 +260,7 @@ object will be equal to `null`.
There are official IPinfo client libraries available for many languages including PHP, Python, Go, Java, Ruby, and many popular frameworks such as Django, Rails, and Laravel. There are also many third-party libraries and integrations available for our API.
0 commit comments