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 yesterday

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 26% 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

1441d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/651050?v=4)[tiran133](/maintainers/tiran133)[@tiran133](https://github.com/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

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k34](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.3M7](/packages/avalara-avataxclient)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1942.4k4](/packages/aimeos-prisma)

PHPackages © 2026

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