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

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

larva/laravel-geoip
===================

GeoIP Extension for Laravel.

2.0.6(2y ago)2962MITPHP

Since Feb 15Pushed 2y agoCompare

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

READMEChangelog (10)Dependencies (7)Versions (38)Used By (0)

laravel-geoip
=============

[](#laravel-geoip)

 [![Stable Version](https://camo.githubusercontent.com/0f6b183629d8eb33b4db95153d4fb44dafb583a72b2ab821698286ea5104a5fd/68747470733a2f2f706f7365722e707567782e6f72672f6c617276612f6c61726176656c2d67656f69702f762f737461626c65)](https://packagist.org/packages/larva/laravel-geoip) [![Total Downloads](https://camo.githubusercontent.com/e0a71ceca34a2302f2d5df387d1818ebf3ef9e3542b868e81028f5965ecc4261/68747470733a2f2f706f7365722e707567782e6f72672f6c617276612f6c61726176656c2d67656f69702f646f776e6c6f616473)](https://packagist.org/packages/larva/laravel-geoip) [![License](https://camo.githubusercontent.com/86488692110dd4df3aa73dc166e39aa904b5eaa654c398bdabc8a958f139a434/68747470733a2f2f706f7365722e707567782e6f72672f6c617276612f6c61726176656c2d67656f69702f6c6963656e7365)](https://packagist.org/packages/larva/laravel-geoip)

Laravel 的IP位置查询模块。

平台支持
----

[](#平台支持)

- [百度](http://lbsyun.baidu.com)
- [高德](https://lbs.amap.com)
- [QQ](https://lbs.qq.com)
- [淘宝](http://ip.taobao.com)
- [IP-API](https://ip-api.com)
- [IPFinder](https://ipfinder.io)
- [IPInfo](https://ipinfo.io/)
- [IPIP](https://www.ipip.net)
- [LibreSpeed](https://www.librespeed.cn)
- [IPGeoLocation](https://ipgeolocation.io)

环境需求
----

[](#环境需求)

- PHP &gt;= 8.1

Installation
------------

[](#installation)

```
composer require larva/laravel-geoip -vv
```

```
    $info=  \Larva\GeoIP\GeoIP::get('218.1.2.3');
    $info=  \Larva\GeoIP\GeoIP::with('baidu')->get('218.1.2.3');
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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 ~30 days

Recently: every ~8 days

Total

37

Last Release

877d ago

Major Versions

1.3.5 → 2.0.02024-01-01

PHP version history (3 changes)1.0.0PHP ^7.2 || ^8.0

1.2.0PHP ^7.4|^8.0

1.3.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/534cdb651e8c806590fa945c6b5a18f361613848e890db1349f4a9fbcae1a650?d=identicon)[xutongle](/maintainers/xutongle)

---

Top Contributors

[![xutl](https://avatars.githubusercontent.com/u/20939388?v=4)](https://github.com/xutl "xutl (42 commits)")[![xutongle](https://avatars.githubusercontent.com/u/46956076?v=4)](https://github.com/xutongle "xutongle (14 commits)")

---

Tags

geoiplaravelphplaravelgeoipLarva

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k51.0M7.6k](/packages/larastan-larastan)[calebdw/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

15104.9k4](/packages/calebdw-larastan)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[zidbih/laravel-deadlock

Make temporary Laravel workarounds expire and fail CI when ignored.

984.0k](/packages/zidbih-laravel-deadlock)

PHPackages © 2026

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