ner0tic/php-geopoint-api

GeoPoint API v1 client

Installs: 13

Dependents: 0

Watchers: 1

Open Issues: 1

Language: PHP

1.0.3 2013-05-05 00:58 UTC

README

ORM agnostic php library to access Neustar's GeoPoint REST api

Installation

Add to composer

    "require": {
        "ner0tic/php-api-core":     "*",
        "ner0tic/php-geopoint-api":   "*"
        // ...

Usage

$geo = new \GeoPoint\Client();

$geo->setApiKey( 'XXXXXXXXXXX' );
$geo->setSecret( 'XXXXXXX' );

$ipinfo = $geo->get( $ip );

$city = $ipinfo->Location->CityData->city;

To Do

  • Clean up ip info data retrieval