Weekly updated database of IP CIDR to Country codes, indexed by the first 1/4th of the IP address
npm install @ayesh/geo-ip-databaseThis 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.
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.
``bash`
composer require ayesh/geo-ip-database ^1.0.0
`bash`
npm i @ayesh/geo-ip-database
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.
This product includes GeoLite2 data created by MaxMind, available from https://www.maxmind.com.