ORM agnostic php library to access Neustar's GeoPoint REST api
Add to composer
"require": {
"ner0tic/php-api-core": "*",
"ner0tic/php-geopoint-api": "*"
// ...
$geo = new \GeoPoint\Client();
$geo->setApiKey( 'XXXXXXXXXXX' );
$geo->setSecret( 'XXXXXXX' );
$ipinfo = $geo->get( $ip );
$city = $ipinfo->Location->CityData->city;
- Clean up ip info data retrieval