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

ActiveLibrary[API Development](/categories/api)

ipdon/ipdon
===========

IPdon API integration - IP intelligence, served

00PHP

Since Nov 28Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ipdon-api/php)[ Packagist](https://packagist.org/packages/ipdon/ipdon)[ RSS](/packages/ipdon-ipdon/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

IPdon PHP integration
=====================

[](#ipdon-php-integration)

[IPdon](https://ipdon.com) is a fast IP intelligence solution. This is the official PHP library which benchmarks as the fastest PHP library for obtaining data from any IP.

Natively it provides:

- Direct access to Geographical, Network, Company or Domain based information on any IP in the world.
- A 30-40x speed increase versus competing services due to the services algorithm
- Provides a multi-dimensional array response identical to the IPdon service itself.
- Has a free tier without needing an API key (token) Learn more about [plans](https://ipdon.com/pricing) here.

Usage
-----

[](#usage)

### Install

[](#install)

To install using Composer:

```
.....
```

### Quickstart

[](#quickstart)

This is an example of calling the service

```
// Leave string '' empty to use the Free tier.
$apiKey = '5ae79d31-6e48-4641-a0fd-bcee9cd30ff6'

$visitorIP = empty($_SERVER['HTTP_X_FORWARDED_FOR']) && !empty($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : $_SERVER['HTTP_X_FORWARDED_FOR'];

$IPdon = new IPdon($apiKey);
$retval = $IPdon->query($visitorIP);
print_r($retval);
```

Example response:

```
{   'abuse': {'contacts': ['abuse@amazonaws.com']},
    'domains': ['might-d-light.com'],
    'location': {   'city': 'Dublin',
                    'continent': 'Europe',
                    'country': 'Ireland',
                    'country_iso': 'IE',
                    'currency': 'Euro',
                    'dialcode': '353',
                    'languages': ['en-IE', 'ga-IE'],
                    'latitude': 53.3379,
                    'longitude': -6.2591,
                    'map_image': 'https://staticmap.thisipcan.cyou/?lat=53.3379&lon=-6.2591',
                    'postalcode': 'D02',
                    'region': 'Northern Europe',
                    'state': 'Leinster'},
    'network': {   'cidr_size': 4194304.0,
                   'cidr_subsegment': '34.240.0.0/13',
                   'ip_subsegment_end': '34.247.255.255',
                   'ip_subsegment_end_int': 586678271,
                   'ip_subsegment_start': '34.240.0.0',
                   'ip_subsegment_start_int': 586153984,
                   'ip_type': 'ipv4',
                   'rir': 'arin',
                   'rir_cidr_segment': '34.192.0.0/10'},
    'organization': {   'asn': '16509',
                        'description': 'Amazon NA Prefix',
                        'name': 'NET34'},
    'request': {   'query': '34.241.171.232',
                   'status': 'success',
                   'subscription': False},
    'time': {   'timezone': 'Europe/Dublin',
                'timezone_is_dst': True,
                'timezone_utc_offset': 0.0}}

```

See IPdon documentation for an elaborate description on how to use the API [here](https://ipdon.com/documentation)

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/38b5895f3504ba952bdd5092699be478253f6deb0150d99a165ab981e0f6f4f0?d=identicon)[ipdon](/maintainers/ipdon)

---

Top Contributors

[![ipdon-api](https://avatars.githubusercontent.com/u/119361339?v=4)](https://github.com/ipdon-api "ipdon-api (4 commits)")

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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