PHPackages                             chintanlin/laravel-geoip2 - 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. chintanlin/laravel-geoip2

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

chintanlin/laravel-geoip2
=========================

The provider of geoip2 for laravel

v1.0.0(5y ago)18MITPHP

Since Jul 9Pushed 5y ago1 watchersCompare

[ Source](https://github.com/chintanlin/laravel-geoip2)[ Packagist](https://packagist.org/packages/chintanlin/laravel-geoip2)[ RSS](/packages/chintanlin-laravel-geoip2/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

laravel-geoip2
==============

[](#laravel-geoip2)

[![Build Status](https://camo.githubusercontent.com/ccb47363f8793ee00e6be859d09cbf7207f1ed2a81636690ad180fba6db1ce5e/68747470733a2f2f7472617669732d63692e6f72672f6368696e74616e6c696e2f6c61726176656c2d67656f6970322e737667)](https://travis-ci.org/chintanlin/laravel-geoip2)[![Latest Stable Version](https://camo.githubusercontent.com/c9cec1e720ac1823f453c272e4ba3a51d35f1d87e041c7a3c00d9d978c4e2b5a/68747470733a2f2f706f7365722e707567782e6f72672f6368696e74616e6c696e2f6c61726176656c2d67656f6970322f762f737461626c652e737667)](https://packagist.org/packages/chintanlin/laravel-geoip2)[![Total Downloads](https://camo.githubusercontent.com/f0d1f167b29fde8b4048ace50cf9e8ceaf0b86d026e09841c30eb0648fa5f278/68747470733a2f2f706f7365722e707567782e6f72672f6368696e74616e6c696e2f6c61726176656c2d67656f6970322f642f746f74616c2e737667)](https://packagist.org/packages/chintanlin/laravel-geoip2)[![License](https://camo.githubusercontent.com/679407e8922087fd728ea4aac11ee78f04c9ad39ca4f7156434e876ffcab549c/68747470733a2f2f706f7365722e707567782e6f72672f6368696e74616e6c696e2f6c61726176656c2d67656f6970322f6c6963656e73652e737667)](https://packagist.org/packages/chintanlin/laravel-geoip2)

GeoIP2 for Laravel

- [laravel-geoip2 on Packagist](https://packagist.org/packages/chintanlin/laravel-geoip2)
- [laravel-geoip2 on GitHub](https://github.com/chintanlin/laravel-geoip2)

```
composer require chintanlin/laravel-geoip2
```

How to use
==========

[](#how-to-use)

```
    GeoIP2::getCountry('8.8.8.8');  // Facades
    app('geoip2')->getCountry('8.8.8.8'); // Providers
    geoip2('8.8.8.8'); // helpers

    // use maxmind/GeoIP2 PHP API directly
    $record = GeoIP2::city('8.8.8.8');
    $record->country->name;
```

Update Database
===============

[](#update-database)

Database file store at storage\_path('app/GeoLite2-City.mmdb')

ex : Laravel/storage/app/GeoLite2-City.mmdb

You should use your private license key in .env (MAXMIND\_LICENSE=xxxx)

```
    php artisan geoip2:update;
```

###  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

Maturity57

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

2187d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/65447347?v=4)[chintanlin](/maintainers/chintanlin)[@chintanlin](https://github.com/chintanlin)

---

Top Contributors

[![chintanlin](https://avatars.githubusercontent.com/u/65447347?v=4)](https://github.com/chintanlin "chintanlin (18 commits)")

### Embed Badge

![Health badge](/badges/chintanlin-laravel-geoip2/health.svg)

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

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

5.1k5.2k](/packages/shlinkio-shlink)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k39](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)

PHPackages © 2026

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