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

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

xuejd3/geoip
============

Support for multiple Geographical Location services.

13.0.0(4mo ago)05↓90.9%1BSD-2-ClausePHPPHP ^8.0|^8.1|^8.2|^8.3

Since Dec 12Pushed 4mo agoCompare

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

READMEChangelogDependencies (9)Versions (41)Used By (1)

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

50

—

FairBetter than 95% of packages

Maintenance75

Regular maintenance activity

Popularity4

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity90

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 65% 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 ~183 days

Total

39

Last Release

136d 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

3.0.9 → 13.0.02026-03-25

PHP version history (10 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

### Community

Maintainers

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

---

Top Contributors

[![Torann](https://avatars.githubusercontent.com/u/1406755?v=4)](https://github.com/Torann "Torann (117 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)")[![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)")[![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)")[![Butochnikov](https://avatars.githubusercontent.com/u/4212297?v=4)](https://github.com/Butochnikov "Butochnikov (2 commits)")[![rjp2525](https://avatars.githubusercontent.com/u/1334865?v=4)](https://github.com/rjp2525 "rjp2525 (2 commits)")[![janicerar](https://avatars.githubusercontent.com/u/29040621?v=4)](https://github.com/janicerar "janicerar (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)")[![xuejd3](https://avatars.githubusercontent.com/u/16837278?v=4)](https://github.com/xuejd3 "xuejd3 (2 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)")[![faustbrian](https://avatars.githubusercontent.com/u/22145591?v=4)](https://github.com/faustbrian "faustbrian (1 commits)")[![giggsey](https://avatars.githubusercontent.com/u/305730?v=4)](https://github.com/giggsey "giggsey (1 commits)")

---

Tags

laravelgeoipgeolocationlocationgeographicalIP APIinfoDB

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[torann/geoip

Support for multiple Geographical Location services.

2.2k15.7M102](/packages/torann-geoip)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

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

Disposable email validator

6023.2M7](/packages/propaganistas-laravel-disposable-email)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

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

The official AI SDK for Laravel.

1.1k4.6M282](/packages/laravel-ai)[iazaran/smart-cache

Smart Cache is a caching optimization package designed to enhance the way your Laravel application handles data caching. It intelligently manages large data sets by compressing, chunking, or applying other optimization strategies to keep your application performant and efficient.

21114.2k](/packages/iazaran-smart-cache)

PHPackages © 2026

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