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 5d ago

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

2372d 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)
```

###  Alternatives

[leafo/lessphp

lessphp is a compiler for LESS written in PHP.

2.2k8.2M141](/packages/leafo-lessphp)[realrashid/sweet-alert

Laravel Sweet Alert Is A Package For Laravel Provides An Easy Way To Display Alert Messages Using The SweetAlert2 Library.

1.2k2.9M21](/packages/realrashid-sweet-alert)[symfony/polyfill-php55

Symfony polyfill backporting some PHP 5.5+ features to lower PHP versions

10731.7M9](/packages/symfony-polyfill-php55)[helmich/typo3-typoscript-lint

Static code analysis for the TypoScript configuration language.

902.9M241](/packages/helmich-typo3-typoscript-lint)[cyclonedx/cyclonedx-php-composer

Creates CycloneDX Software Bill-of-Materials (SBOM) from PHP Composer projects

821.6M17](/packages/cyclonedx-cyclonedx-php-composer)[kartik-v/yii2-widget-touchspin

A Yii2 wrapper widget for the Bootstrap Switch plugin to use checkboxes &amp; radios as toggle touchspines (sub repo split from yii2-widgets)

184.1M6](/packages/kartik-v-yii2-widget-touchspin)

PHPackages © 2026

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