PHPackages                             gotapi/ip4dev - 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. gotapi/ip4dev

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

gotapi/ip4dev
=============

fetch ip information from https://ip4.dev/location

1.0.0(4y ago)00MITPHP

Since Jan 8Pushed 4y ago1 watchersCompare

[ Source](https://github.com/gotapi/ip4dev-php-sdk)[ Packagist](https://packagist.org/packages/gotapi/ip4dev)[ RSS](/packages/gotapi-ip4dev/feed)WikiDiscussions main Synced today

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

php sdk for  (ip to geo location database)

usage :

```
composer require gotapi/ip4dev

```

example:

```
$ip4dev = new \Gotapi\Ip4dev\Ip4Dev();
print_r($ip4dev->ipInfo("183.136.216.35"));
print_r($ip4dev->myIp());
```

output:

```
Gotapi\Ip4dev\Ip4DevResponse Object
(
    [ip] => 125.120.106.113
    [continent_code] => AS
    [country] => China
    [latitude] => 30.2994
    [longitude] => 120.1612
    [country_code] => CN
    [country_code3] => CHN
    [tz] => Asia/Shanghai
    [asn] => 4134
    [organization] => Chinanet
    [region] => Zhejiang
    [region_code] => ZJ
    [city] => Hangzhou
)

```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

1637d ago

### Community

Maintainers

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

### Embed Badge

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

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[oat-sa/tao-core

TAO core extension

66143.7k122](/packages/oat-sa-tao-core)

PHPackages © 2026

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