ner0tic/php-geopoint-api

GeoPoint API v1 client

1.0.3 2013-05-05 00:58 UTC

This package is not auto-updated.

Last update: 2024-12-16 11:54:18 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