Skip to content

Commit

Permalink
add note that ip2country.info is dead as of dec 2022
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyvankooten committed Sep 6, 2023
1 parent 866b651 commit a476f32
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,20 +86,14 @@ $countries->isCountryCodeInEU('US'); // false
```

#### Geo-location
This library includes a simple geo-location service using [ip2c.org](https://about.ip2c.org/) or [ip2country.info](https://ip2country.info).
This library includes a simple geo-location service using [ip2c.org](https://about.ip2c.org/) or [ip2country.info](https://ip2country.info) (deprecated as of Dec 2022).

```php
$geolocator = new Ibericode\Vat\Geolocator();
$geolocator->locateIpAddress('8.8.8.8'); // US
```

To use ip2country.info explicitly.
```php
$geolocator = new Ibericode\Vat\Geolocator('ip2country.info');
$geolocator->locateIpAddress('8.8.8.8'); // US
```

Or, to use ip2c.org explicitly.
To use ip2c.org explicitly.

```php
$geolocator = new Ibericode\Vat\Geolocator('ip2c.org');
Expand Down

0 comments on commit a476f32

Please sign in to comment.