PHPackages                             torann/geoip - 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. torann/geoip

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

torann/geoip
============

Support for multiple Geographical Location services.

3.0.10(2mo ago)2.2k15.3M↓35.7%392[59 issues](https://github.com/Torann/laravel-geoip/issues)[22 PRs](https://github.com/Torann/laravel-geoip/pulls)20BSD-2-ClausePHPPHP ^8.0|^8.1|^8.2|^8.3|^8.4|^8.5CI failing

Since Dec 12Pushed 2mo ago60 watchersCompare

[ Source](https://github.com/Torann/laravel-geoip)[ Packagist](https://packagist.org/packages/torann/geoip)[ RSS](/packages/torann-geoip/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (18)Versions (41)Used By (20)

GeoIP for Laravel
=================

[](#geoip-for-laravel)

[![Latest Stable Version](https://camo.githubusercontent.com/8b04ff10afd2d4ea4aa81914c8e20a94aca0f2e6bd5fed576a83944ceb8c2ecb/68747470733a2f2f706f7365722e707567782e6f72672f746f72616e6e2f67656f69702f762f737461626c65)](https://packagist.org/packages/torann/geoip)[![Total Downloads](https://camo.githubusercontent.com/a48041eea760014c22956df19387eda524e432eece396e871ee628ea4e187c0b/68747470733a2f2f706f7365722e707567782e6f72672f746f72616e6e2f67656f69702f646f776e6c6f616473)](https://packagist.org/packages/torann/geoip)[![Patreon donate button](https://camo.githubusercontent.com/f9e075baad95563481d35174d43ef50757281abb6bc795d0f473fad452afa030/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f70617472656f6e2d646f6e6174652d79656c6c6f772e737667)](https://www.patreon.com/torann)[![Donate to this project using Paypal](https://camo.githubusercontent.com/604e3db9c8751116b3f765aad0353ec7ded655bbe8aaacbc38d8c4a6b784b3ed/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d677265656e2e737667)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4CJA2A97NPYVU)

Determine the geographical location and currency of website visitors based on their IP addresses.

- [GeoIP for Laravel on Packagist](https://packagist.org/packages/torann/geoip)
- [GeoIP for Laravel on GitHub](https://github.com/Torann/laravel-geoip)
- [Upgrade Guides](http://lyften.com/projects/laravel-geoip/doc/upgrade.html)

v3.0.8 Possible Breaking Change
-------------------------------

[](#v308-possible-breaking-change)

Out of the box the system no longer comes with a service pre-configured. Which will cause an error for those who did **NOT** previously publish the configurtion file. Follow the [getting started guide](https://lyften.com/projects/laravel-geoip/doc/) on how to publish the config and how to set up a service.

Sorry for this inconvenience, but MaxMind made me remove the free service that was the default. If the config file was published prior to this change, you should not been affected.

Official Documentation
----------------------

[](#official-documentation)

Documentation for the package can be found on [Lyften.com](http://lyften.com/projects/laravel-geoip/).

Contributions
-------------

[](#contributions)

Many people have contributed to project since its inception.

Thanks to:

- [Dwight Watson](https://github.com/dwightwatson)
- [nikkiii](https://github.com/nikkiii)
- [jeffhennis](https://github.com/jeffhennis)
- [max-kovpak](https://github.com/max-kovpak)
- [dotpack](https://github.com/dotpack)
- [Jess Archer](https://github.com/jessarcher)

###  Health Score

79

—

ExcellentBetter than 100% of packages

Maintenance83

Actively maintained with recent releases

Popularity75

Solid adoption and visibility

Community52

Growing community involvement

Maturity93

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 65.2% 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 ~118 days

Recently: every ~187 days

Total

39

Last Release

84d ago

Major Versions

0.2.3 → 1.0.x-dev2016-10-02

0.2.4 → 1.0.32017-01-26

0.2.5 → 1.0.42017-06-21

1.2.1 → 3.0.12020-09-10

PHP version history (11 changes)0.1.0PHP &gt;=5.3.0

1.0.x-devPHP &gt;=5.5.9

1.0.9PHP ^7.0

1.0.10PHP ^7.1

1.2.0PHP ^7.2

3.0.2PHP ^7.2 || ^8.0

3.0.3PHP ^8.0

3.0.5PHP ^8.0|^8.1

3.0.6PHP ^8.0|^8.1|^8.2

3.0.7PHP ^8.0|^8.1|^8.2|^8.3

3.0.10PHP ^8.0|^8.1|^8.2|^8.3|^8.4|^8.5

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1406755?v=4)[Daniel Stainback](/maintainers/torann)[@Torann](https://github.com/Torann)

---

Top Contributors

[![Torann](https://avatars.githubusercontent.com/u/1406755?v=4)](https://github.com/Torann "Torann (118 commits)")[![dotpack](https://avatars.githubusercontent.com/u/1175814?v=4)](https://github.com/dotpack "dotpack (10 commits)")[![jessarcher](https://avatars.githubusercontent.com/u/4977161?v=4)](https://github.com/jessarcher "jessarcher (6 commits)")[![dwightwatson](https://avatars.githubusercontent.com/u/1100408?v=4)](https://github.com/dwightwatson "dwightwatson (6 commits)")[![highstrike](https://avatars.githubusercontent.com/u/2379538?v=4)](https://github.com/highstrike "highstrike (3 commits)")[![alies-dev](https://avatars.githubusercontent.com/u/5278175?v=4)](https://github.com/alies-dev "alies-dev (3 commits)")[![osmhub](https://avatars.githubusercontent.com/u/13149318?v=4)](https://github.com/osmhub "osmhub (3 commits)")[![kyranb](https://avatars.githubusercontent.com/u/5426926?v=4)](https://github.com/kyranb "kyranb (3 commits)")[![rjp2525](https://avatars.githubusercontent.com/u/1334865?v=4)](https://github.com/rjp2525 "rjp2525 (2 commits)")[![Butochnikov](https://avatars.githubusercontent.com/u/4212297?v=4)](https://github.com/Butochnikov "Butochnikov (2 commits)")[![SamuelNitsche](https://avatars.githubusercontent.com/u/24483576?v=4)](https://github.com/SamuelNitsche "SamuelNitsche (2 commits)")[![mikemand](https://avatars.githubusercontent.com/u/745184?v=4)](https://github.com/mikemand "mikemand (2 commits)")[![LukeT](https://avatars.githubusercontent.com/u/2203091?v=4)](https://github.com/LukeT "LukeT (2 commits)")[![janicerar](https://avatars.githubusercontent.com/u/29040621?v=4)](https://github.com/janicerar "janicerar (2 commits)")[![sakalauskas](https://avatars.githubusercontent.com/u/1455148?v=4)](https://github.com/sakalauskas "sakalauskas (1 commits)")[![syntafin](https://avatars.githubusercontent.com/u/695535?v=4)](https://github.com/syntafin "syntafin (1 commits)")[![tbryson-dialmycalls](https://avatars.githubusercontent.com/u/220066505?v=4)](https://github.com/tbryson-dialmycalls "tbryson-dialmycalls (1 commits)")[![KelvynCarbone](https://avatars.githubusercontent.com/u/5288360?v=4)](https://github.com/KelvynCarbone "KelvynCarbone (1 commits)")[![Dylan-DPC](https://avatars.githubusercontent.com/u/99973273?v=4)](https://github.com/Dylan-DPC "Dylan-DPC (1 commits)")[![evaldas-leliuga](https://avatars.githubusercontent.com/u/1867113?v=4)](https://github.com/evaldas-leliuga "evaldas-leliuga (1 commits)")

---

Tags

laravelgeoipgeolocationlocationgeographicalIP APIinfoDB

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/torann-geoip/health.svg)

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

###  Alternatives

[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

19267.9k3](/packages/interaction-design-foundation-laravel-geoip)[propaganistas/laravel-disposable-email

Disposable email validator

6023.0M6](/packages/propaganistas-laravel-disposable-email)[spatie/laravel-responsecache

Speed up a Laravel application by caching the entire response

2.8k9.0M69](/packages/spatie-laravel-responsecache)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k91.0k1](/packages/mike-bronner-laravel-model-caching)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M193](/packages/laravel-ai)[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)

PHPackages © 2026

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