PHPackages                             seymourlabs/ipapi-lookup - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. seymourlabs/ipapi-lookup

AbandonedArchivedLibrary[Parsing &amp; Serialization](/categories/parsing)

seymourlabs/ipapi-lookup
========================

IP lookup library for the ipapi.co service

1.2(8y ago)015.4k1MITPHP

Since Jun 30Pushed 8y ago1 watchersCompare

[ Source](https://github.com/seymourlabs/ipapi-lookup)[ Packagist](https://packagist.org/packages/seymourlabs/ipapi-lookup)[ Docs](https://github.com/seymourlabs/ipapi-lookup)[ RSS](/packages/seymourlabs-ipapi-lookup/feed)WikiDiscussions master Synced 2w ago

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

ipapi-lookup
============

[](#ipapi-lookup)

**Perform IP lookups using the [ipapi.co](https://ipapi.co) service**

[![Latest Stable Version](https://camo.githubusercontent.com/061fc7aaea0d80ada338d8b3895e9d6be1ab8b9f21e6cde4abfef644332c213c/68747470733a2f2f706f7365722e707567782e6f72672f7365796d6f75726c6162732f69706170692d6c6f6f6b75702f76657273696f6e2e706e67)](https://packagist.org/packages/seymourlabs/ipapi-lookup)[![Total Downloads](https://camo.githubusercontent.com/c8ac24796c0255d2befc3c47d37eb55b17a8567ce46dcabaaccc5d157de34629/68747470733a2f2f706f7365722e707567782e6f72672f7365796d6f75726c6162732f69706170692d6c6f6f6b75702f642f746f74616c2e706e67)](https://packagist.org/packages/seymourlabs/ipapi-lookup)

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

[](#installation)

This library is installed via [Composer](http://getcomposer.org/). To install, simply add it to your `composer.json` file:

```
{
    "require": {
        "seymourlabs/ipapi-lookup": "~1.0"
    }
}
```

And run composer to update your dependencies:

```
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update

```

Basic Usage
-----------

[](#basic-usage)

Using the library;

```
require('vendor/autoload.php');

$client = new \Seymourlabs\ipapi\Client('8.8.8.8');
$response = $client->request();

$ip = $response->getIp();
$city = $response->getCity();
$region = $response->getRegion();
$country = $response->getCountry();
$postal = $response->getPostal();
$latitude = $response->getLatitude();
$longitude = $response->getLongitude();
$timezone = $response->getTimezone();
$asn = $response->getAsn();
$org = $response->getOrg();

```

Using a paid key with the service;

```
$client = new \Seymourlabs\ipapi\Client('8.8.8.8', 'myKey');

```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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 ~23 days

Total

3

Last Release

3242d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/479306?v=4)[Andrew Seymour](/maintainers/andrew-s)[@andrew-s](https://github.com/andrew-s)

---

Top Contributors

[![andrew-s](https://avatars.githubusercontent.com/u/479306?v=4)](https://github.com/andrew-s "andrew-s (6 commits)")

---

Tags

jsonIPlookup

### Embed Badge

![Health badge](/badges/seymourlabs-ipapi-lookup/health.svg)

```
[![Health](https://phpackages.com/badges/seymourlabs-ipapi-lookup/health.svg)](https://phpackages.com/packages/seymourlabs-ipapi-lookup)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k34](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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