PHP code example of ner0tic / php-geopoint-api
1. Go to this page and download the library: Download ner0tic/php-geopoint-api library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ner0tic / php-geopoint-api example snippets
$geo = new \GeoPoint\Client();
$geo->setApiKey( 'XXXXXXXXXXX' );
$geo->setSecret( 'XXXXXXX' );
$ipinfo = $geo->get( $ip );
$city = $ipinfo->Location->CityData->city;
js
" "ner0tic/php-api-core": "*",
"ner0tic/php-geopoint-api": "*"
// ...