PHPackages                             iplookup/iplookup - 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. iplookup/iplookup

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

iplookup/iplookup
=================

Get location information based on client ip

0.3.8(4y ago)0151MitPHPPHP &gt;=5.6.0CI failing

Since Jun 12Pushed 4y ago1 watchersCompare

[ Source](https://github.com/cunheise/iplookup)[ Packagist](https://packagist.org/packages/iplookup/iplookup)[ Docs](https://github.com/cunheise/iplookup.git)[ RSS](/packages/iplookup-iplookup/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (10)Dependencies (3)Versions (13)Used By (0)

IPLookup
========

[](#iplookup)

Install
-------

[](#install)

```
composer require iplookup/iplookup

```

Lib
---

[](#lib)

Get location information via remote ip address

Sample
------

[](#sample)

```
use IPLookup\Client\TaobaoClient;
use IPLookup\IPLookupService;
use Symfony\Component\Cache\Simple\FilesystemCache;

require dirname(__DIR__) . '/vendor/autoload.php';

$ip = '115.60.19.180';
$iplookupService = new IPLookupService(new TaobaoClient(new FilesystemCache('namespace', 1 * 60 * 60, dirname(__DIR__) . '/runtime/cache')));
echo $iplookupService->lookup($ip) . PHP_EOL;
$ip = \IPLookup\Util::getCurrentIP();
echo $iplookupService->lookup($ip) . PHP_EOL;

```

License
-------

[](#license)

Copyright 2008-2018.

Licensed under the [GNU Lesser General Public License, Version 3.0](https://www.gnu.org/licenses/lgpl.txt)

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Recently: every ~265 days

Total

12

Last Release

1615d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/513866?v=4)[Nathan Wu](/maintainers/nathanwu)[@nathanwu](https://github.com/nathanwu)

---

Top Contributors

[![cunheise](https://avatars.githubusercontent.com/u/1112325?v=4)](https://github.com/cunheise "cunheise (1 commits)")

---

Tags

ipLookUp

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M518](/packages/shopware-core)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9317.2k55](/packages/open-dxp-opendxp)[whatsdiff/whatsdiff

See what's changed in your project's dependencies

761.1k](/packages/whatsdiff-whatsdiff)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

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

PHPackages © 2026

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