zoujingli/ip2region
PHP版本的离线IP地址定位库 observed · 2026-08-28
Health v2 · maintenance only
90/100
- Activity 92
- Release rhythm 83
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 5
- age_days: 3451
- days_rel: 117
- days_push: 53
- n_releases_24m: 18
Adoption not part of the score
1420 stars · 210 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A PHP library for offline IP geolocation lookups based on the ip2region XDB data format, supporting IPv4 and IPv6 with multiple caching strategies. It ships with a bundled IPv4 database and provides both a global helper function and an object-oriented API, plus a CLI tool for managing database files.
Use cases
- look up the city and ISP of an IP address in PHP
- offline IP geolocation without external API calls
- resolve IPv6 addresses to regions
- identify private, loopback, and reserved IP addresses
- batch query IP locations with caching
- download and manage ip2region XDB database files
When to choose
- you need fast, offline IP-to-region lookups in a PHP 7.1+ application with no extension dependencies
- you want a bundled IPv4 database that works out of the box via Composer
- you need both functional and OOP APIs plus caching modes for performance tuning
When to avoid
- you need global, street-level, or highly precise geolocation data
- your project is not in PHP
- you require IPv6 support without downloading an extra database file
Facets
library · maturity active
search-engine cli developer-tools networking developer-tools php cli cross-platform ip-geolocation ip2region offline-database ipv4 ipv6 xdb composer-package command-line
1 source
- readme: https://github.com/zoujingli/ip2region · fetched 2026-08-28 · 528406c12465
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| zoujingli/ip2region | main | 90 |
For agents
markdown · JSON · MCP: product_card(name="zoujingli/ip2region")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem