PHPackages                             olakunlevpn/geoiplookup - 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. olakunlevpn/geoiplookup

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

olakunlevpn/geoiplookup
=======================

Geoiplookup.io IP's lookup, Perfect for PHP applications.

1.3(4y ago)3281MITPHPPHP ^7.2 || ^8.0

Since Mar 5Pushed 4y ago1 watchersCompare

[ Source](https://github.com/olakunlevpn/geoiplookup)[ Packagist](https://packagist.org/packages/olakunlevpn/geoiplookup)[ Docs](https://github.com/olakunlevpn/Geoiplookup)[ RSS](/packages/olakunlevpn-geoiplookup/feed)WikiDiscussions main Synced 1mo ago

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

PHP Geoiplookup
===============

[](#php-geoiplookup)

Geoiplookup.io IP's lookup, Perfect for PHP SDK applications.

Install
-------

[](#install)

Via Composer

```
$ composer require olakunlevpn/geoiplookup
```

Usage
-----

[](#usage)

```
require_once "vendor/autoload.php";
use Olakunlevpn\Geoiplookup\GeoiplookupClient;

$Geoiplookup = new GeoiplookupClient();

$data = $Geoiplookup->lookUp();
echo $data->getIp();

// $data->getIp();
// $data->getIsp();
// $data->getOrganization();
// $data->getHostname();
// $data->getLatitude();
// $data->getLongitude();
// $data->getPostalCode();
// $data->getCity();
// $data->getCountryCode();
// $data->getCountry();
// $data->getContinentCode();
// $data->getContinentName();
// $data->getRegion();
// $data->getDistrict();
// $data->getTimeZone();
// $data->getConnectionType();
// $data->getAsnNumber();
// $data->getAsnOrg();
// $data->getAsn();
// $data->getCurrencyCode();
// $data->GetCurrencyName();
```

Pass custom ip address as variable
----------------------------------

[](#pass-custom-ip-address-as-variable)

```
require_once "vendor/autoload.php";
use Olakunlevpn\Geoiplookup\GeoiplookupClient;

$Geoiplookup = new GeoiplookupClient();

$ipAddress = $_SERVER['REMOTE_ADDR'];

$data = $Geoiplookup->lookUp($ipAddress);

echo $data->getIp();
```

Testing
-------

[](#testing)

```
$ phpunit
```

Credits
-------

[](#credits)

- [Olakunlevpn](https://github.com/olakunlevpn)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

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

4

Last Release

1529d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20794807?v=4)[Olakunlevpn](/maintainers/olakunlevpn)[@olakunlevpn](https://github.com/olakunlevpn)

---

Top Contributors

[![olakunlevpn](https://avatars.githubusercontent.com/u/20794807?v=4)](https://github.com/olakunlevpn "olakunlevpn (6 commits)")

---

Tags

packageGeoiplookup

### Embed Badge

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

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

###  Alternatives

[bensampo/laravel-embed

Painless responsive embeds for videos, slideshows and more.

142146.8k](/packages/bensampo-laravel-embed)[shivella/laravel-bitly

Laravel package for generating bitly url

75789.0k1](/packages/shivella-laravel-bitly)[gallib/laravel-short-url

A Laravel package to shorten urls

16516.4k](/packages/gallib-laravel-short-url)[aedart/athenaeum

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

255.2k](/packages/aedart-athenaeum)[qafeen/manager

Manage, install and search laravel base packages.

122.8k](/packages/qafeen-manager)

PHPackages © 2026

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