PHPackages                             tiran133/ipinfodb-php - 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. tiran133/ipinfodb-php

ActiveLibrary[API Development](/categories/api)

tiran133/ipinfodb-php
=====================

PHP IP to Country for https://ipinfodb.com/api

v0.1.4(3y ago)07.9kPHP

Since Jul 20Pushed 3y ago1 watchersCompare

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

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

Simple Query interface for  for Laravel 5
================================================================

[](#simple-query-interface-for-httpsipinfodbcom-for-laravel-5)

How to install:
===============

[](#how-to-install)

Install Package

```
composer require tiran133/ipinfodb-php
```

Publish Config

```
php artisan vender:publish --provider="Tiran133\Laravel\IPInfoDBServiceProvider"
```

Add your api key to .env

```
IPINFODB_API_KEY=

```

How to use:
===========

[](#how-to-use)

Via Facade:

Country:

```
$country = \Tiran133\Laravel\Facade\IPInfo::getCountry($ip);

$country->countryName;
$country->countryCode;
```

City:

```
$city = \Tiran133\Laravel\Facade\IPInfo::getCity($ip);

$city->countryName;
$city->countryCode;
$city->regionName;
$city->cityName;
$city->zipCode;
$city->latitude;
$city->longitude;
$city->timeZone;
```

Via app()

Country:

```
$ipinfo =  app('ipinfodb');
$country = $ipinfo->getCountry($ip);

$country->countryName;
$country->countryCode;
```

City:

```
$city = \Tiran133\Laravel\Facade\IPInfo::getCity($ip);

$city->countryName;
$city->countryCode;
$city->regionName;
$city->cityName;
$city->zipCode;
$city->latitude;
$city->longitude;
$city->timeZone;
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1390d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b7a8ac9cf74424bd22ba21e2669799a7c91affdb19fc463e76afe41e024938e?d=identicon)[tiran133](/maintainers/tiran133)

---

Top Contributors

[![tiran133](https://avatars.githubusercontent.com/u/651050?v=4)](https://github.com/tiran133 "tiran133 (1 commits)")

### Embed Badge

![Health badge](/badges/tiran133-ipinfodb-php/health.svg)

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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