From 101f3cee044bd3a6e9cd6d586ad9f815dc2519c5 Mon Sep 17 00:00:00 2001 From: Kim <352706458+kim-ip2location@users.noreply.github.com> Date: Thu, 3 Dec 2026 15:49:38 +0800 Subject: [PATCH 1/3] Refresh IP2Location LITE links in the Binary README --- src/Provider/IP2LocationBinary/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Provider/IP2LocationBinary/README.md b/src/Provider/IP2LocationBinary/README.md index af9f63c1e..934961f06 100644 --- a/src/Provider/IP2LocationBinary/README.md +++ b/src/Provider/IP2LocationBinary/README.md @@ -18,9 +18,9 @@ composer require geocoder-php/ip2location-binary-provider ### Note -This provider requires a BIN database file. You can download the free database from [IP2Location LITE](https://lite.ip2location.com/) website or the commercial database from [IP2Location](https://www.ip2location.com/). +This provider requires a BIN database file. You can download the free database from [IP2Location LITE](https://www.ip2location.com/register?id=lite) (sign up for a free download token) or the commercial database from [IP2Location](https://www.ip2location.com/). The LITE databases are licensed under CC BY-SA 4.0, and attribution to IP2Location is required. -For testing, download the BIN database from [here](https://lite.ip2location.com/database/ip-country-region-city-latitude-longitude-zipcode), decompress and upload the .BIN file into `.\Tests\fixtures`. +For testing, download the `IP2LOCATION-LITE-DB9.IPV6.BIN` database from your [IP2Location LITE](https://www.ip2location.com/register?id=lite) account, decompress and upload the .BIN file into `.\Tests\fixtures`. ### Contribute From f3250f1ad8a119acf3d0cd89147a272d37947e30 Mon Sep 17 00:00:00 2001 From: Kim <352706458+kim-ip2location@users.noreply.github.com> Date: Thu, 3 Dec 2026 15:50:18 +0800 Subject: [PATCH 2/3] Point the free option to IP2LocationBinary --- src/Provider/IP2Location/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Provider/IP2Location/README.md b/src/Provider/IP2Location/README.md index 037482b6c..f3b960272 100644 --- a/src/Provider/IP2Location/README.md +++ b/src/Provider/IP2Location/README.md @@ -18,7 +18,7 @@ composer require geocoder-php/ip2location-provider ### Note -This provider requires IP2Location™ [IP Geolocation Web Service](https://www.ip2location.com/web-service/ip2location) subscription. It is a paid solution with high accuracy. For free solution, please use our free [IpInfoDB](https://github.com/geocoder-php/Geocoder#ip) project. Ipinfodb is using [IP2Location LITE](https://lite.ip2location.com/) database which has less accuracy at city level. +This provider requires IP2Location™ [IP Geolocation Web Service](https://www.ip2location.com/web-service/ip2location) subscription. It is a paid solution with high accuracy. For a free solution, use the [IP2LocationBinary](https://github.com/geocoder-php/ip2location-binary-provider) provider with a free [IP2Location LITE](https://www.ip2location.com/register?id=lite) database, which has less accuracy at city level. Please note that this provider is querying IP2Location Web Service **WS9** package and each query will cost **4 credits**. From 0727ea7a95379c2b7d3e089348ba78f7f746731d Mon Sep 17 00:00:00 2001 From: Kim <352706458+kim-ip2location@users.noreply.github.com> Date: Thu, 3 Dec 2026 15:51:01 +0800 Subject: [PATCH 3/3] Update LITE download comments in tests --- src/Provider/IP2LocationBinary/Tests/IP2LocationBinaryTest.php | 2 +- src/Provider/IP2LocationBinary/Tests/IntegrationTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Provider/IP2LocationBinary/Tests/IP2LocationBinaryTest.php b/src/Provider/IP2LocationBinary/Tests/IP2LocationBinaryTest.php index 242c7bd5c..517f58e19 100644 --- a/src/Provider/IP2LocationBinary/Tests/IP2LocationBinaryTest.php +++ b/src/Provider/IP2LocationBinary/Tests/IP2LocationBinaryTest.php @@ -24,7 +24,7 @@ class IP2LocationBinaryTest extends BaseTestCase public function setUp(): void { - // Download this BIN database from https://lite.ip2location.com/database/ip-country-region-city-latitude-longitude-zipcode + // Download IP2LOCATION-LITE-DB9.IPV6.BIN from your IP2Location LITE account: https://www.ip2location.com/register?id=lite $this->binaryFile = __DIR__.'/fixtures/IP2LOCATION-LITE-DB9.IPV6.BIN'; } diff --git a/src/Provider/IP2LocationBinary/Tests/IntegrationTest.php b/src/Provider/IP2LocationBinary/Tests/IntegrationTest.php index 503a17c3e..891f70cd9 100644 --- a/src/Provider/IP2LocationBinary/Tests/IntegrationTest.php +++ b/src/Provider/IP2LocationBinary/Tests/IntegrationTest.php @@ -42,7 +42,7 @@ public static function setUpBeforeClass(): void protected function createProvider(ClientInterface $httpClient) { - // Download this BIN database from https://lite.ip2location.com/database/ip-country-region-city-latitude-longitude-zipcode + // Download IP2LOCATION-LITE-DB9.IPV6.BIN from your IP2Location LITE account: https://www.ip2location.com/register?id=lite return new IP2LocationBinary(__DIR__.'/fixtures/IP2LOCATION-LITE-DB9.IPV6.BIN', \IP2Location\Database::FILE_IO); }