PHPackages                             p-12s/get-country-code-by-ip - 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. p-12s/get-country-code-by-ip

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

p-12s/get-country-code-by-ip
============================

The package will help you find the country code by ip-address

1.0.2(6y ago)055proprietaryPHPPHP &gt;=5.4

Since Nov 16Pushed 6y ago1 watchersCompare

[ Source](https://github.com/p-12s/get-country-code-by-ip)[ Packagist](https://packagist.org/packages/p-12s/get-country-code-by-ip)[ RSS](/packages/p-12s-get-country-code-by-ip/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (4)Used By (0)

Get country code by ip
======================

[](#get-country-code-by-ip)

Will help you find the country code by ip-address

I took the code from the repository and remade a little for myself.
Thanks to the author @dostelon

Using:

```
// require_once('vendor/p-12s/get-country-code-by-ip/src/CountryCodeFinder.php');
$finder = new CountryCodeFinder\CountryCodeFinder();
echo $finder->getCode('178.200.170.41'); // DE
echo $finder->getCode('176.31.69.179'); // BE

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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 ~0 days

Total

3

Last Release

2368d ago

PHP version history (3 changes)1.0.0PHP ^7.2

1.0.1PHP ^5.4

1.0.2PHP &gt;=5.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/0e4b9e6ffd59795bac19b0446eeca6aafbe2cdc843003d5da1665be4516ef5ab?d=identicon)[mental.notes](/maintainers/mental.notes)

---

Top Contributors

[![p-12s](https://avatars.githubusercontent.com/u/19509085?v=4)](https://github.com/p-12s "p-12s (6 commits)")

### Embed Badge

![Health badge](/badges/p-12s-get-country-code-by-ip/health.svg)

```
[![Health](https://phpackages.com/badges/p-12s-get-country-code-by-ip/health.svg)](https://phpackages.com/packages/p-12s-get-country-code-by-ip)
```

PHPackages © 2026

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