PHPackages                             maciejkrol/ipapicom - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. maciejkrol/ipapicom

ActiveLibrary[HTTP &amp; Networking](/categories/http)

maciejkrol/ipapicom
===================

A very simple PHP library for handling http://ip-api.com/

v1.0(10y ago)142.0k—7.4%PHP

Since Apr 8Pushed 10y ago1 watchersCompare

[ Source](https://github.com/MaciejKrol/ip-api-com)[ Packagist](https://packagist.org/packages/maciejkrol/ipapicom)[ RSS](/packages/maciejkrol-ipapicom/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

ip-api-com
==========

[](#ip-api-com)

Simple PHP wrapper for

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

[](#installation)

[![Latest Stable Version](https://camo.githubusercontent.com/b4ee918109276d4027a3be0dea319833de825ec3f087920c6d8be4625dcf08be/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d616369656a6b726f6c2f6970617069636f6d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/maciejkrol/ipapicom)

Package is available on [Packagist](http://packagist.org/packages/lcobucci/jwt), you can install it using [Composer](http://getcomposer.org).

```
composer require maciejkrol/ipapicom
```

Basic usage
-----------

[](#basic-usage)

```
use maciejkrol\ipapicom;

$ipapi = new ipapi ('ACCESS KEY');
$location = $ipapi->locate ('127.0.0.1');
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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

Total

2

Last Release

3693d ago

Major Versions

0.0.1 → v1.02016-04-08

### Community

Maintainers

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

---

Top Contributors

[![maciejkrol](https://avatars.githubusercontent.com/u/666924?v=4)](https://github.com/maciejkrol "maciejkrol (8 commits)")

---

Tags

geolocationIPIP API

### Embed Badge

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

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

###  Alternatives

[akrabat/ip-address-middleware

PSR-15 middleware that determines the client IP address and stores it as a ServerRequest attribute

1702.5M18](/packages/akrabat-ip-address-middleware)[middlewares/client-ip

Middleware to detect the client ip and save it as a request attribute

16629.7k9](/packages/middlewares-client-ip)[akrabat/proxy-detection-middleware

PSR-7/PSR-15 Middleware that determines the scheme, host and port from the 'X-Forwarded-Proto', 'X-Forwarded-Host' and 'X-Forwarded-Port' headers and updates the Request's Uri object.

3190.4k1](/packages/akrabat-proxy-detection-middleware)[middlewares/geolocation

Middleware to geolocate the client using the ip address

138.5k2](/packages/middlewares-geolocation)[middlewares/firewall

Middleware to provide IP filtering

12318.3k2](/packages/middlewares-firewall)[cidram/aggregator

A stand-alone class implementation of the IPv4+IPv6 IP+CIDR aggregator from CIDRAM.

2624.1k](/packages/cidram-aggregator)

PHPackages © 2026

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