Download the PHP package whois-api/simple-geoip without Composer
On this page you can find all versions of the php package whois-api/simple-geoip. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download whois-api/simple-geoip
More information about whois-api/simple-geoip
Files in whois-api/simple-geoip
Package simple-geoip
Short Description The simplest possible way to get IP geolocation information.
License MIT
Informations about the package simple-geoip
php-simple-geoip
The simplest possible way to get IP geolocation information in PHP.
Prerequisites
To use this library, you'll need to create a free IP Geolocation account: https://ip-geolocation.whoisxmlapi.com/api
If you haven't done this yet, please do so now.
Installation
To install simple-geoip
using composer, simply run:
In the root of your project directory.
To use the library, use Composer's autoload
Requirements
Supported PHP versions:
- PHP 5.6.x
- PHP 7.0.x
- PHP 7.1.x
- PHP 7.2.x
Dependencies:
- mbstring
- mbregex
- json
- curl
Documentation
Full API documentation available here
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.
More examples you can see in the "examples" directory.
Here's the sort of data you might get back when performing a ip geolocation lookup request:
Development
After you clone this repository you need to install all requirements:
To run tests you can use the following command
All versions of simple-geoip with dependencies
nesbot/carbon Version ~1.18
php Version ^5.5 || ^7.0
ext-json Version *