PHPackages                             ivoglent/ip2c - 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. ivoglent/ip2c

ActiveLibrary

ivoglent/ip2c
=============

Convert IP address to country code or name

1.0.0(6y ago)012PHP

Since Aug 30Pushed 6y ago1 watchersCompare

[ Source](https://github.com/ivoglent/ip2c)[ Packagist](https://packagist.org/packages/ivoglent/ip2c)[ RSS](/packages/ivoglent-ip2c/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

IP to Country
=============

[](#ip-to-country)

Detect location of an IP live area, country code and country name.

Usage
=====

[](#usage)

```
require 'vendor/autoload.php';
use ivoglent\ip2c\IpLocator;

$ip = '186.95.255.255;
$ipLocator = new IpLocator($ip);
if ($ipLocator->analysis()) {
    echo sprintf('%s : %s, %s, %s', $ip, $ipLocator->getArea(), $ipLocator->getCountryCode(), $ipLocator->getCoutryName()) . PHP_EOL;
} else {
    echo 'Can not detect this IP address' . PHP_EOL;
}
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

2450d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/648b0a3019094426579d72fcbcdc0d88b7398dbface60d53a25f73c6b0c2538c?d=identicon)[ivoglent](/maintainers/ivoglent)

### Embed Badge

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

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

PHPackages © 2026

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