PHPackages                             aungmyokyaw/ip-api - 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. [API Development](/categories/api)
4. /
5. aungmyokyaw/ip-api

ActiveLibrary[API Development](/categories/api)

aungmyokyaw/ip-api
==================

IP-API for laravel package

v1.0.0(3y ago)266MITPHP

Since Apr 8Pushed 3y ago1 watchersCompare

[ Source](https://github.com/aungmyokyaw97/ip-api)[ Packagist](https://packagist.org/packages/aungmyokyaw/ip-api)[ RSS](/packages/aungmyokyaw-ip-api/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (2)Dependencies (3)Versions (4)Used By (0)

Laravel IP-API Integration: Quick IP Geolocation Solution
=========================================================

[](#laravel-ip-api-integration-quick-ip-geolocation-solution)

The Laravel IP-API Package is a powerful and easy-to-use solution for integrating IP geolocation functionality into your Laravel applications. With this package, you can effortlessly retrieve detailed information about the location, timezone, ISP, and more for any IP address. It provides a simplified interface for making API requests to IP-API, a popular and reliable IP geolocation service. Save time and effort in implementing IP geolocation in your Laravel projects with this convenient package.

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

[](#installation)

```
composer require aungmyokyaw/ip-api
```

Usage
-----

[](#usage)

#### Features

[](#features)

- Facade
- Request

Facade
------

[](#facade)

Retrieving geolocation data for a requested IP address.

```
use IPAPI;

$ipData = IPAPI::detect();

```

Retrieving geolocation data for a custom IP address.

```
use IPAPI;

$ipAddress = '192.168.1.1';

$ipData = IPAPI::detect($ipAddress);

```

Request
-------

[](#request)

In your Laravel controller or middleware, you can use the $request-&gt;ipApi() method to retrieve geolocation data for the requested IP address. For example:

```
public function show(Request $request)
{

    $geoData = $request->ipApi(); // retrieve geolocation data

}

```

#### Response

[](#response)

Available response data for this geo package includes:

NameDescriptionTypestatussuccess or failstringmessageincluded only when status is fail Can be one of the following: private range, reserved range, invalid querystringcontinentContinent namestringcontinentCodeTwo-letter continent codestringcountryCountry namestringcountryCodeTwo-letter country code ISO 3166-1 alpha-2stringregionRegion/state short code (FIPS or ISO)stringregionNameRegion/statestringcityCitystringdistrictDistrict (subdivision of city)stringzipZip CodestringlatLatitudefloatlonLongitudefloattimezoneTimezone (tz)stringoffsetTimezone UTC DST offset in secondsintcurrencyNational currencystringispISP namestringorgOrganization namestringasAS number and organization, separated by space (RIR). Empty for IP blocks not being announced in BGP tables.stringasnameAS name (RIR). Empty for IP blocks not being announced in BGP tables.stringreverseReverse DNS of the IP (can delay response)stringmobileMobile (cellular) connectionboolproxyProxy, VPN or Tor exit addressboolhostingHosting, colocated or data centerboolqueryIP used for the queryboolCredits
-------

[](#credits)

[ip-api.com](https://ip-api.com)
--------------------------------

[](#ip-apicom)

### License

[](#license)

This package is open source and released under the [MIT License](LICENSE). Please review the [LICENSE](LICENSE) file for detailed licensing terms and conditions.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

3

Last Release

1174d ago

Major Versions

v0.0.2 → v1.0.02023-04-08

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/32431323?v=4)[Aung Myo Kyaw](/maintainers/aungmyokyaw97)[@aungmyokyaw97](https://github.com/aungmyokyaw97)

---

Top Contributors

[![aungmyokyaw97](https://avatars.githubusercontent.com/u/32431323?v=4)](https://github.com/aungmyokyaw97 "aungmyokyaw97 (5 commits)")

---

Tags

geolocationiplaravellaravel-packagelaravelpackageIP APIip geolocation

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/aungmyokyaw-ip-api/health.svg)

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

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.5M920](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[simplestats-io/laravel-client

Analytics for Laravel. Track visitors, registrations, and payments. Discover which channels actually drive revenue, not just traffic. Server-side, GDPR compliant, ad-blocker proof.

5019.3k](/packages/simplestats-io-laravel-client)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

783.5k](/packages/scriptdevelop-whatsapp-manager)

PHPackages © 2026

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