ayesh/geo-ip-database

Weekly updated database of IP CIDR to Country codes, indexed by the first 1/4th of the IP address

v1.1.20240615 2024-06-15 04:26 UTC

This package is auto-updated.

Last update: 2024-06-15 04:27:47 UTC


README

Geo IP Database

This is an automated repository that downloads and processes GeoLite database from Maxmind GeoLite database, and processes it to be consumed by ayesh/geo-ip composer package.

This repository only contains the JSON files that other packages (mainly ayesh/geo-ip) consumes.

This repository is automatically updated on every Monday, and if there are new changes, a new minor version will be tagged and published automatically.

See Ayesh/Geo-IP-Tree-Builder for the actual parser.

Usage

ayesh/geo-ip package is the main target use case, and that package requires this repository. If you use ayesh/geo-ip package, no further action is necessary.

Composer

composer require ayesh/geo-ip-database ^1.0.0

NPM/Yarn

npm i @ayesh/geo-ip-database

Updates

This repository will be updated and tagged automatically. Make sure to require the ayesh/geo-ip-database without pinning a specific version (e.g ^1.0.0), and running npm up or composer update should automatically use the newest database version.

Source

This product includes GeoLite2 data created by MaxMind, available from https://www.maxmind.com.