2017 © Pedro Peláez
 

library ipinfo

PHP Library of ipinfo.io

image

wallacemaxters/ipinfo

PHP Library of ipinfo.io

  • Saturday, December 5, 2015
  • by wallacemaxters
  • Repository
  • 1 Watchers
  • 4 Stars
  • 33 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 5 Versions
  • 6 % Grown

The README.md

IPInfo - Easy PHP Library for ipinfo.io

Instalation, (*1)

{
    "require" : {
        "wallacemaxters/ipinfo" : "1.*"
    }
}

use WallaceMaxters\IPInfo\IPInfo;

Get the response of ipinfo.io. This returns the \WallaceMaxters\IPInfo\Response object;, (*2)

$responseObject = IPInfo::get('8.8.8.8');

Get a collection of a response of \WallaceMaxters\IPInfo\Response, (*3)

$ipCollection = IPInfo::get(['8.8.8.8', '7.7.7.7']);

Get Lat and Lng separated in array. This results are converted in float, (*4)

list($lat, $lng) = IPInfo::get('8.8.8.8')->getLoc();

Converting information to array, (*5)

IPInfo::get('8.8.8.8')->toArray();

Retrieves information from host(s), (*6)

$data = IPInfo::getFromHost('www.google.com');

The Versions

05/12 2015

dev-master

9999999-dev

PHP Library of ipinfo.io

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-curl *

 

05/12 2015

1.3.0

1.3.0.0

PHP Library of ipinfo.io

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-curl *

 

04/12 2015

1.2.0

1.2.0.0

PHP Library of ipinfo.io

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-curl *

 

01/12 2015

1.0

1.0.0.0

PHP Library of ipinfo.io

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

01/12 2015

1.1.0

1.1.0.0

PHP Library of ipinfo.io

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-curl *