2017 © Pedro Peláez
 

library ipapi-lookup

IP lookup library for the ipapi.co service

image

seymourlabs/ipapi-lookup

IP lookup library for the ipapi.co service

  • Monday, August 14, 2017
  • by andrew-s
  • Repository
  • 1 Watchers
  • 0 Stars
  • 565 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 38 % Grown

The README.md

ipapi-lookup

Perform IP lookups using the ipapi.co service, (*1)

Latest Stable Version Total Downloads, (*2)

Installation

This library is installed via Composer. To install, simply add it to your composer.json file:, (*3)

{
    "require": {
        "seymourlabs/ipapi-lookup": "~1.0"
    }
}

And run composer to update your dependencies:, (*4)

$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update

Basic Usage

Using the library;, (*5)

require('vendor/autoload.php');

$client = new \Seymourlabs\ipapi\Client('8.8.8.8');
$response = $client->request();

$ip = $response->getIp();
$city = $response->getCity();
$region = $response->getRegion();
$country = $response->getCountry();
$postal = $response->getPostal();
$latitude = $response->getLatitude();
$longitude = $response->getLongitude();
$timezone = $response->getTimezone();
$asn = $response->getAsn();
$org = $response->getOrg();

Using a paid key with the service;, (*6)

$client = new \Seymourlabs\ipapi\Client('8.8.8.8', 'myKey');

The Versions

14/08 2017

dev-master

9999999-dev https://github.com/seymourlabs/ipapi-lookup

IP lookup library for the ipapi.co service

  Sources   Download

MIT

The Requires

 

json ip lookup

14/08 2017

1.2

1.2.0.0 https://github.com/seymourlabs/ipapi-lookup

IP lookup library for the ipapi.co service

  Sources   Download

MIT

The Requires

 

json ip lookup

30/06 2017

1.1

1.1.0.0 https://github.com/seymourlabs/ipapi-lookup

IP lookup library for the ipapi.co service

  Sources   Download

MIT

The Requires

 

json ip lookup

30/06 2017

1.0

1.0.0.0 https://github.com/seymourlabs/ipapi-lookup

IP lookup library for the ipapi.co service

  Sources   Download

MIT

The Requires

 

json ip lookup