PHPackages                             triesss/ip-nation-locator - 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. triesss/ip-nation-locator

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

triesss/ip-nation-locator
=========================

This package will provide the origin nation for a given ip address.

00PHP

Since Aug 30Pushed 1y ago1 watchersCompare

[ Source](https://github.com/triesss/ip-nation-locator)[ Packagist](https://packagist.org/packages/triesss/ip-nation-locator)[ RSS](/packages/triesss-ip-nation-locator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

ip-nation-locator
=================

[](#ip-nation-locator)

This package is used to get the country of an IP address. You can use the `IpNationLocator` class to get the country of an IP address. To make the class work, you need to provide a CSV or Sqlite3 file containing the IP ranges and the country codes.

Requirements
------------

[](#requirements)

- A CSV or Sqlite3 file containing the IP ranges and the country codes in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
    - The CSV file should have the following columns:
        - `ip_network`: The network address with its' subnet mask, e.g. `1.2.0.0/24`
        - `country_code`: The country code
    - The Sqlite3 file must have a table `ip_networks` with the following columns:
        - `ip_network`: The network address with its' subnet mask, e.g. `1.2.0.0/24`
        - `country_code`: The country code

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity17

Early-stage or recently created project

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/2fdc25d375a552fd088c8652076d0524aec657e0b6d747022e89d5b5243bd8eb?d=identicon)[triesss](/maintainers/triesss)

### Embed Badge

![Health badge](/badges/triesss-ip-nation-locator/health.svg)

```
[![Health](https://phpackages.com/badges/triesss-ip-nation-locator/health.svg)](https://phpackages.com/packages/triesss-ip-nation-locator)
```

###  Alternatives

[botman/tinker

BotMan tinker command for your Laravel BotMan project

102201.2k4](/packages/botman-tinker)[msa/laravel-grapes

laravel grapes is a cms drag and drop page builder

1853.1k](/packages/msa-laravel-grapes)[tizis/lara-comments

Comments system for your Laravel application. Features: can be used to comment on any model, HTML filter customization (HTMLPurifier), API, comment rating, replies, events, auth rules ...

1194.7k](/packages/tizis-lara-comments)[bircher/php-merge

A PHP merge utility using the Diff php library or the command line git.

3729.2k](/packages/bircher-php-merge)[degordian/yii2-webhooks

Yii2 extension for webhooks

117.1k](/packages/degordian-yii2-webhooks)[ramsey/pygments

A PHP wrapper for Pygments, the Python syntax highlighter, forked from kzykhys/pygments.

103.0k3](/packages/ramsey-pygments)

PHPackages © 2026

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