PHPackages                             manka/geo-ip - 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. manka/geo-ip

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

manka/geo-ip
============

A simple GeoIP package for Laravel to get location details from an IP address.

v1.1.1(11mo ago)04↓50%proprietaryPHPPHP &gt;=8.0

Since Jun 6Pushed 11mo agoCompare

[ Source](https://github.com/pawanmanka/GeoIP)[ Packagist](https://packagist.org/packages/manka/geo-ip)[ RSS](/packages/manka-geo-ip/feed)WikiDiscussions main Synced 1mo ago

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

Laravel GeoIP
=============

[](#laravel-geoip)

[![Latest Version](https://camo.githubusercontent.com/a9c194bc38aa02667ed1258366bc61ff87a2927070e332ad9a5202fbe4d7c898/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d616e6b612f67656f2d69702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/manka/geo-ip)[![Total Downloads](https://camo.githubusercontent.com/d42d93f8da81e84198c35867397b25c2fde7843b68931aa60ba0a31320d2a67d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d616e6b612f67656f2d69702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/manka/geo-ip)[![License](https://camo.githubusercontent.com/586c3852f0ce8282a7f747b7a82fd33394cdd7d91f430d14c9cf541e260b8b71/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d616e6b612f67656f2d69702e7376673f7374796c653d666c61742d737175617265)](LICENSE)

**Laravel GeoIP** is a simple package to retrieve geographical location data from an IP address using the [ip-api.com](http://ip-api.com/) API.

🔧 Installation
--------------

[](#-installation)

Install via Composer:

```
composer require manka/geo-ip

If you're using Laravel  [
    // ...
    manka\GeoIP\GeoIPServiceProvider::class,
],

```

⚙️ Configuration Publish the configuration file (optional):

```
php artisan vendor:publish --tag=config
```

This will create a config/geoip.php file you can modify.

🚀 Usage Use the package like this:

```
use GeoIP;

$location = GeoIP::lookup(); // Uses current request IP
$customLocation = GeoIP::lookup('8.8.8.8'); // Pass a specific IP

dd($location);
```

Sample Output

```
{
    "status": "success",
    "country": "United States",
    "regionName": "California",
    "city": "Mountain View",
    "zip": "94043",
    "lat": 37.422,
    "lon": -122.084,
    "timezone": "America/Los_Angeles",
    "isp": "Google LLC",
    "query": "8.8.8.8"
}
```

✅ Features

- Get geo location from IP address
- Automatically detect current IP
- Simple API, no setup required
- Uses public API (ip-api.com)

Developed with ❤️ by Pawan Manka

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance54

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

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

Every ~0 days

Total

2

Last Release

336d ago

### Community

Maintainers

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

---

Top Contributors

[![pawanmanka](https://avatars.githubusercontent.com/u/41562172?v=4)](https://github.com/pawanmanka "pawanmanka (7 commits)")

### Embed Badge

![Health badge](/badges/manka-geo-ip/health.svg)

```
[![Health](https://phpackages.com/badges/manka-geo-ip/health.svg)](https://phpackages.com/packages/manka-geo-ip)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M682](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M157](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M210](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M857](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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