PHPackages                             jalle19/geoipcountryprovider - 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. jalle19/geoipcountryprovider

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

jalle19/geoipcountryprovider
============================

Geocoder GeoIP provider that works with the default GeoIP database

1.0.0(12y ago)018MITPHPPHP &gt;=5.3.0

Since Jul 23Pushed 12y ago1 watchersCompare

[ Source](https://github.com/Jalle19/GeoipCountryProvider)[ Packagist](https://packagist.org/packages/jalle19/geoipcountryprovider)[ RSS](/packages/jalle19-geoipcountryprovider/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (2)Used By (0)

GeoipCountryProvider
====================

[](#geoipcountryprovider)

Geocoder GeoIP provider that works with the default GeoIP database. This means that you can use this provider to determine the country of a visitor simply by installing `php5-geoip` (or equivalent package).

Usage
-----

[](#usage)

```
$geocoder = new \Geocoder\Geocoder();
$geocoder->registerProvider(new \GeoipCountryProvider\GeoipCountryProvider());

var_dump($geocoder->geocode('8.8.8.8'));

// Output:
//
// object(Geocoder\Result\Geocoded)[55]
//   protected 'latitude' => int 0
//   protected 'longitude' => int 0
//   protected 'bounds' => null
//   protected 'streetNumber' => null
//   protected 'streetName' => null
//   protected 'cityDistrict' => null
//   protected 'city' => null
//   protected 'zipcode' => null
//   protected 'county' => null
//   protected 'countyCode' => null
//   protected 'region' => null
//   protected 'regionCode' => null
//   protected 'country' => string 'United States' (length=13)
//   protected 'countryCode' => string 'US' (length=2)
//   protected 'timezone' => null
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

4726d ago

### Community

Maintainers

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

---

Top Contributors

[![Jalle19](https://avatars.githubusercontent.com/u/1106133?v=4)](https://github.com/Jalle19 "Jalle19 (5 commits)")

---

Tags

geocodergeoip

### Embed Badge

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

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

###  Alternatives

[toin0u/geocoder-laravel

Geocoder Service Provider for Laravel

7615.4M17](/packages/toin0u-geocoder-laravel)[league/geotools

Geo-related tools PHP 7.3+ library

1.4k5.6M31](/packages/league-geotools)[torann/geoip

Support for multiple Geographical Location services.

2.2k15.3M93](/packages/torann-geoip)[willdurand/geocoder

Common files for PHP Geocoder

17437.9M169](/packages/willdurand-geocoder)[stevebauman/location

Retrieve a user's location by their IP Address

1.3k8.5M87](/packages/stevebauman-location)[toin0u/geotools

Geo-related tools PHP 7.3+ library

1.4k1.3k](/packages/toin0u-geotools)

PHPackages © 2026

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