PHPackages                             ip2location/ip2location-io-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. ip2location/ip2location-io-php

ActiveLibrary

ip2location/ip2location-io-php
==============================

IP2Location.io PHP SDK to get geolocation info from IPv4 and IPv6 address.

1.1.0(1y ago)237.0k—0%11[1 issues](https://github.com/ip2location/ip2location-io-php/issues)2MITPHPPHP &gt;=7.4

Since Mar 29Pushed 4mo ago4 watchersCompare

[ Source](https://github.com/ip2location/ip2location-io-php)[ Packagist](https://packagist.org/packages/ip2location/ip2location-io-php)[ RSS](/packages/ip2location-ip2location-io-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (3)Used By (2)

IP2Location.io PHP SDK
======================

[](#ip2locationio-php-sdk)

[![Latest Stable Version](https://camo.githubusercontent.com/3fe0b37accfc3982d3d83ee64829e4ba5c13400e45310315469930b2b5451498/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6970326c6f636174696f6e2f6970326c6f636174696f6e2d696f2d7068702e737667)](https://packagist.org/packages/ip2location/ip2location-io-php)[![Total Downloads](https://camo.githubusercontent.com/f39aef655d7708165ca844289c0200cc6d036d39f84a643a4643fabe4de0dc54/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6970326c6f636174696f6e2f6970326c6f636174696f6e2d696f2d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ip2location/ip2location-io-php)

This PHP module enables user to query for an enriched data set, such as country, region, district, city, latitude &amp; longitude, ZIP code, time zone, ASN, ISP, domain, net speed, IDD code, area code, weather station data, MNC, MCC, mobile brand, elevation, usage type, address type, advertisement category and proxy data with an IP address. It supports both IPv4 and IPv6 address lookup.

This module also provides WHOIS lookup API that helps users to obtain domain information, WHOIS record, by using a domain name. The WHOIS API returns a comprehensive WHOIS data such as creation date, updated date, expiration date, domain age, the contact information of the registrant, mailing address, phone number, email address, nameservers the domain is using and much more.

There is also a Hosted Domain API that allowing users to get the list of hosted domain names by IP address in real time. The REST API supports both IPv4 and IPv6 address lookup.

This module requires API key to function. You may sign up for a free API key at .

Developer Documentation
=======================

[](#developer-documentation)

To learn more about installation, usage, and code examples, please visit the developer documentation at .

LICENCE
=======

[](#licence)

See the LICENSE file.

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance61

Regular maintenance activity

Popularity36

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~735 days

Total

2

Last Release

411d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.4.0

1.1.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/d5fbe791b4a8d666a158043146d73380f05a0bea9062f0fa0852bf82f6bc762c?d=identicon)[ip2location](/maintainers/ip2location)

---

Top Contributors

[![ip2location-com](https://avatars.githubusercontent.com/u/6367210?v=4)](https://github.com/ip2location-com "ip2location-com (25 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ip2location-ip2location-io-php/health.svg)

```
[![Health](https://phpackages.com/badges/ip2location-ip2location-io-php/health.svg)](https://phpackages.com/packages/ip2location-ip2location-io-php)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
