PHPackages                             ix-network/ip-info-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. ix-network/ip-info-api

ActiveLibrary[API Development](/categories/api)

ix-network/ip-info-api
======================

An API to get information of an IP

3.0.0(10y ago)111Apache-2.0PHP

Since Mar 9Pushed 10y ago1 watchersCompare

[ Source](https://github.com/fsgmhoward/IXIPLibrary)[ Packagist](https://packagist.org/packages/ix-network/ip-info-api)[ RSS](/packages/ix-network-ip-info-api/feed)WikiDiscussions master Synced 2mo ago

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

IX IP Infomation API
====================

[](#ix-ip-infomation-api)

An IP Information API Dependent on MaxMind IP Database
------------------------------------------------------

[](#an-ip-information-api-dependent-on-maxmind-ip-database)

Description
-----------

[](#description)

This API can help you get information of a IP. For example, the country, state, city or even the latitude, longitude or the ISP information of an IP address.

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

[](#installation)

```
curl -sS https://getcomposer.org/installer | php
php composer.phar require "ix-network/ip-info-api:dev-master"

```

How to Use
----------

[](#how-to-use)

Use this to update your database:

```
include 'vendor/autoload.php';
// when $logfile is null, log will be recorded into Log/Cron.log
IXNetwork\IPLib\Cron::cron([$type = 'City'[, $isLog = true[, $logFile = null]]]);

```

Then you can use this to get information of an IP:

```
include 'vendor/autoload.php';
// when $logfile is null, log will be recorded into Log/Info.log
IXNetwork\IPLib\Info::getInfo($ip[, $type = 'City'[, $isLogging = true[, $logFile = null]]]);

```

Copyright and License
---------------------

[](#copyright-and-license)

Copyright (C) 2016 Howard Liu

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

```
http://www.apache.org/licenses/LICENSE-2.0

```

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

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

Total

2

Last Release

3715d ago

Major Versions

2.x-dev → 3.0.02016-03-13

### Community

Maintainers

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

---

Top Contributors

[![fsgmhoward](https://avatars.githubusercontent.com/u/10681776?v=4)](https://github.com/fsgmhoward "fsgmhoward (11 commits)")

---

Tags

apiIP

### Embed Badge

![Health badge](/badges/ix-network-ip-info-api/health.svg)

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

###  Alternatives

[m165437/laravel-blueprint-docs

API Blueprint Renderer for Laravel

22779.0k](/packages/m165437-laravel-blueprint-docs)[ok/ipstack-client

A PHP wrapper for using Ipstack API

10384.3k](/packages/ok-ipstack-client)

PHPackages © 2026

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