PHPackages                             ip2location/ip2location - 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

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ip2location/ip2location
=======================

This module is a PHP module that enables the user to find the country, region, city, etc

039.6k↓55.6%PHP

Since Aug 23Pushed 12y ago5 watchersCompare

[ Source](https://github.com/HundredMinds/IP2Location-PHP-Module)[ Packagist](https://packagist.org/packages/ip2location/ip2location)[ RSS](/packages/ip2location-ip2location/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

```
IP2Location (PHP Module)
========================

This PHP module provides fast lookup of country, region, city, latitude, longitude, ZIP code, time zone, ISP, domain name, connection speed, IDD code, area code, weather station code, weather station name, MNC, MCC, mobile brand, elevation, and usage type from IP address by using IP2Location database. This module uses a file based database available at IP2Location.com.

This module can be used in many types of projects such as:

 1) select the geographically closest mirror
 2) analyze your web server logs to determine the countries of your visitors
 3) credit card fraud detection
 4) software export controls
 5) display native language and currency
 6) prevent password sharing and abuse of service
 7) geotargeting in advertisement

The database will be updated in monthly basis for the greater accuracy. Free sample database is available at /samples directory or download it from http://www.ip2location.com/developers.

The complete database is available at http://www.ip2location.com under Premium subscription package. This module also support IP2Location IPv6 version.

INSTALLATION

To install this module, unzip the package and copy the following files to your web folder.
 i)   IP2Location.php
 ii)  example.php
 iii) databases/IP-COUNTRY-SAMPLE.BIN
 iv)  databases/IPV6-COUNTRY.SAMPLE.BIN

To test this installation, please browse example.php using web browser.

DEPENDENCIES

The complete database is available at http://www.ip2location.com under subscription package.

COPYRIGHT AND LICENCE

Copyright (C) 2005-2013 by IP2Location.com, support@ip2location.com
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/57b5bd04c5cebc9626b04ca5b2b81a27601f55d995a3290cf79043df2127a9b7?d=identicon)[Murano](/maintainers/Murano)

---

Top Contributors

[![chrislim2888](https://avatars.githubusercontent.com/u/3418232?v=4)](https://github.com/chrislim2888 "chrislim2888 (2 commits)")

### Embed Badge

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

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

###  Alternatives

[uccellolabs/filament-theme-color

Easy way to change filament theme color on the fly.

1717.0k](/packages/uccellolabs-filament-theme-color)[akira/laravel-qrcode

A clean, modern, and easy-to-use QR code generator for Laravel

431.4k](/packages/akira-laravel-qrcode)

PHPackages © 2026

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