PHPackages                             ip2location/ip2location-pie - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ip2location/ip2location-pie

ActivePhp-ext[Utility &amp; Helpers](/categories/utility)

ip2location/ip2location-pie
===========================

IP2Location Geolocation Lookup

8.3.0(8mo ago)10306PHP-3.01CPHP &gt;= 7.0.0CI passing

Since Sep 4Pushed 7mo ago4 watchersCompare

[ Source](https://github.com/chrislim2888/IP2Location-PECL-Extension)[ Packagist](https://packagist.org/packages/ip2location/ip2location-pie)[ RSS](/packages/ip2location-ip2location-pie/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)DependenciesVersions (2)Used By (0)

[![Tests](https://github.com/chrislim2888/IP2Location-PECL-Extension/actions/workflows/tests.yml/badge.svg)](https://github.com/chrislim2888/IP2Location-PECL-Extension/actions/workflows/tests.yml)

IP2Location PECL Extension
==========================

[](#ip2location-pecl-extension)

This PECL extension allows you to find the location of an IP address - country, region or state, district, city, latitude and longitude, ZIP/Postal code, time zone, Internet Service Provider (ISP) or company name, domain name, net speed, area code, weather station code, weather station name, mobile country code (MCC), mobile network code (MNC) and carrier brand, elevation, usage type, address type, IAB category, district and ASN.

To compile it, you will need to have the ip2location c library (version 8.x) installed.

Installation
============

[](#installation)

### Install IP2Location C Library (on Linux/Unix)

[](#install-ip2location-c-library-on-linuxunix)

1. Download the latest ip2location c libray at
2. Decompress the archive.
3. Navigate to working directory. example, cd ip2location-c-x.x.x
4. autoreconf -i -v --force
5. ./configure
6. make
7. make install

### Install PECL extension (on Linux/Unix)

[](#install-pecl-extension-on-linuxunix)

1. Decompress the archive.
2. Navigate to working directory.
3. phpize
4. ./configure
5. make
6. make install
7. A successful install will have created ip2location.so and put it into the PHP extensions directory.
8. Open the php.ini file, and add an extension=ip2loation.so line.
9. Restart apache server. Example, /etc/init.d/apache2 restart
10. php -m (You should notice the ip2location module in the list)

For details installation instructions for PHP PECL extensions, please see:

### Install Using PIE (PHP Installer for Extensions)

[](#install-using-pie-php-installer-for-extensions)

```
pie install ip2location/ip2location-pie

```

Sample BIN Databases
====================

[](#sample-bin-databases)

- Download free IP2Location LITE databases at
- Download IP2Location sample databases at

IPv4 BIN vs IPv6 BIN
====================

[](#ipv4-bin-vs-ipv6-bin)

- Use the IPv4 BIN file if you just need to query IPv4 addresses.
- Use the IPv6 BIN file if you need to query BOTH IPv4 and IPv6 addresses.

Support
=======

[](#support)

Email: . URL:

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance62

Regular maintenance activity

Popularity19

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 Bus Factor3

3 contributors hold 50%+ of commits

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

Unknown

Total

1

Last Release

248d ago

### Community

Maintainers

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

---

Top Contributors

[![chrislim2888](https://avatars.githubusercontent.com/u/3418232?v=4)](https://github.com/chrislim2888 "chrislim2888 (26 commits)")[![ip2location-com](https://avatars.githubusercontent.com/u/6367210?v=4)](https://github.com/ip2location-com "ip2location-com (24 commits)")[![ip2location](https://avatars.githubusercontent.com/u/6367210?v=4)](https://github.com/ip2location "ip2location (24 commits)")[![remicollet](https://avatars.githubusercontent.com/u/270445?v=4)](https://github.com/remicollet "remicollet (22 commits)")[![tony2001](https://avatars.githubusercontent.com/u/42386?v=4)](https://github.com/tony2001 "tony2001 (7 commits)")[![weltling](https://avatars.githubusercontent.com/u/22016?v=4)](https://github.com/weltling "weltling (3 commits)")[![mlocati](https://avatars.githubusercontent.com/u/928116?v=4)](https://github.com/mlocati "mlocati (3 commits)")[![petk](https://avatars.githubusercontent.com/u/1614009?v=4)](https://github.com/petk "petk (1 commits)")

---

Tags

citycountrygeolocationip-addressip-locationip-lookupip2locationiplocationipv4ipv6isppecl-extensionsregion

### Embed Badge

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

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

PHPackages © 2026

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