PHPackages                             webazon/ipinfo - 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. webazon/ipinfo

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

webazon/ipinfo
==============

PHP library for IPinfo (IP geolocation and other types of IP data)

1.0.0(4mo ago)01MITPHPPHP &gt;=8.3

Since Mar 12Pushed 4mo agoCompare

[ Source](https://github.com/katsef/ipinfo)[ Packagist](https://packagist.org/packages/webazon/ipinfo)[ RSS](/packages/webazon-ipinfo/feed)WikiDiscussions main Synced 4w ago

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

webazon/ipinfo
==============

[](#webazonipinfo)

#### We decided to create a **project fork** [**https://github.com/ipinfo/php/**](https://github.com/ipinfo/php/) to explore new features independently.

[](#we-decided-to-create-a-project-fork--httpsgithubcomipinfophp-to-explore-new-features-independently)

### PHP Library for IPinfo (IP Geolocation and other IP Data Types)

[](#php-library-for-ipinfo-ip-geolocation-and-other-ip-data-types)

##### Additionally, a feature has been integrated to set the language locale in accordance with the country determined by the user's IP address.

[](#additionally-a-feature-has-been-integrated-to-set-the-language-locale-in-accordance-with-the-country-determined-by-the-users-ip-address)

###### !!! To get your personal access token, visit

[](#-to-get-your-personal-access-token-visit-httpsipinfoio)

```
use Webazon\Ipinfo\Ipinfo;
use Webazon\Ipinfo\Exception;
require './vendor/autoload.php';
$ipinfo = new Ipinfo('access_token',[IP-адрес]);	## If the IP address parameter is not provided, it returns the visitor's IP data.
$locale = $ipinfo -> locale;
```

---

##### Example of the returned `$ipinfo` object

[](#example-of-the-returned-ipinfo-object)

```
$ipinfo=json_encode($ipinfo,JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT);
```

```
{
    "ip": "77.91.69.93",
    "locale": "he_IL",
    "exception": false,
    "ipinfo": {
        "country": "IL",
        "country_name": "Israel",
        "country_flag": {
            "emoji": "🇮🇱",
            "unicode": "U+1F1EE U+1F1F1"
        },
        "country_code": null,
        "country_flag_url": "https:\/\/cdn.ipinfo.io\/static\/images\/countries-flags\/IL.svg",
        "country_currency": {
            "code": "ILS",
            "symbol": "₪"
        },
        "continent": {
            "code": "AS",
            "name": "Asia"
        },
        "latitude": "32.0809",
        "longitude": "34.7806",
        "loc": "32.0809,34.7806",
        "is_eu": false,
        "ip": "77.91.69.93",
        "hostname": "static.93.69.91.77.ip.webhost1.net",
        "anycast": null,
        "city": "Tel Aviv",
        "org": "AS206446 CLOUD LEASE Ltd",
        "postal": null,
        "region": "Tel Aviv",
        "timezone": "Asia\/Jerusalem",
        "asn": null,
        "company": null,
        "privacy": null,
        "abuse": null,
        "domains": null,
        "bogon": null,
        "all": {
            "ip": "77.91.69.93",
            "hostname": "static.93.69.91.77.ip.webhost1.net",
            "city": "Tel Aviv",
            "region": "Tel Aviv",
            "country": "IL",
            "loc": "32.0809,34.7806",
            "org": "AS206446 CLOUD LEASE Ltd",
            "timezone": "Asia\/Jerusalem",
            "country_name": "Israel",
            "is_eu": false,
            "country_flag": {
                "emoji": "🇮🇱",
                "unicode": "U+1F1EE U+1F1F1"
            },
            "country_flag_url": "https:\/\/cdn.ipinfo.io\/static\/images\/countries-flags\/IL.svg",
            "country_currency": {
                "code": "ILS",
                "symbol": "₪"
            },
            "continent": {
                "code": "AS",
                "name": "Asia"
            },
            "latitude": "32.0809",
            "longitude": "34.7806"
        }
    }
}
```

###  Health Score

34

—

LowBetter than 74% of packages

Maintenance74

Regular maintenance activity

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

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

Unknown

Total

1

Last Release

148d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6104831?v=4)[webazon](/maintainers/webazon)[@Webazon](https://github.com/Webazon)

---

Top Contributors

[![katsef](https://avatars.githubusercontent.com/u/102735505?v=4)](https://github.com/katsef "katsef (2 commits)")

### Embed Badge

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

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k18.3M414](/packages/easycorp-easyadmin-bundle)[illuminate/session

The Illuminate Session package.

9939.9M879](/packages/illuminate-session)[symfony/ux-autocomplete

JavaScript Autocomplete functionality for Symfony

636.3M47](/packages/symfony-ux-autocomplete)[illuminate/cookie

The Illuminate Cookie package.

224.7M141](/packages/illuminate-cookie)[typo3/cms-install

TYPO3 CMS Install Tool - The Install Tool is used for installation, upgrade, system administration and setup tasks.

1812.5M560](/packages/typo3-cms-install)[api-platform/http-cache

API Platform HttpCache component

275.1M22](/packages/api-platform-http-cache)

PHPackages © 2026

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