PHPackages                             whois-api/simple-geoip - 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. whois-api/simple-geoip

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

whois-api/simple-geoip
======================

The simplest possible way to get IP geolocation information.

1.0.0(7y ago)26491MITPHPPHP ^5.5 || ^7.0

Since Aug 28Pushed 3y ago2 watchersCompare

[ Source](https://github.com/whois-api-llc/php-simple-geoip)[ Packagist](https://packagist.org/packages/whois-api/simple-geoip)[ RSS](/packages/whois-api-simple-geoip/feed)WikiDiscussions master Synced today

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

php-simple-geoip
================

[](#php-simple-geoip)

*The simplest possible way to get IP geolocation information in PHP.*

Prerequisites
-------------

[](#prerequisites)

To use this library, you'll need to create a free IP Geolocation account:

If you haven't done this yet, please do so now.

Installation
------------

[](#installation)

To install `simple-geoip` using [composer](https://getcomposer.org/), simply run:

```
$ composer require whois-api/simple-geoip
```

In the root of your project directory.

To use the library, use Composer's [autoload](https://getcomposer.org/doc/01-basic-usage.md#autoloading)

```
require_once __DIR__ . "/vendor/autoload.php";
```

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

[](#requirements)

### Supported PHP versions:

[](#supported-php-versions)

- PHP 5.6.x
- PHP 7.0.x
- PHP 7.1.x
- PHP 7.2.x

### Dependencies:

[](#dependencies)

- mbstring
- mbregex
- json
- curl

Documentation
-------------

[](#documentation)

Full API documentation available [here](https://geoipify.whoisxmlapi.com/docs)

Usage
-----

[](#usage)

Once you have `simple-geoip` installed, you can use it to easily find the physical location of a given IP address.

This library gives you access to all sorts of geographical location data that you can use in your application in any number of ways.

```
