PHP code example of gototus / totus
1. Go to this page and download the library: Download gototus/totus 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/ */
gototus / totus example snippets
use GoTotus\Totus\Client;
$totus = new Client(); // can provide api key via constructor or TOTUS_KEY env var
// Reference: GeoPOI
$pois = $totus->Reference()->GeoPOI(gh: '69y7pkxfc', distance: 1000, what: 'shop', limit: 10);
iprint_r(pois);
// Reference: IP
$ipInfo = $totus->Reference()->IP(i4: '8.8.8.8');
print_r($ipInfo);
// Validate: Email
$email = $totus->Validate()->email('[email protected]');
echo $email;