gototus/totus

PHP Totus Library

0.1.4 2025-04-16 23:00 UTC

This package is auto-updated.

Last update: 2025-07-16 23:40:33 UTC


README

A php client for the Totus API.

Basic Usage

TOTUS_KEY environment variable will be used to pick the api key (create one here)

require 'vendor/autoload.php';

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('info@x.com');
echo $email;

Examples

For further examples, check the examples/ folder in this project. Or a public copy at the GitHub Website.

Manuals

For detailed manuals about Totus please check: docs.gototus.com

Installing

composer require gototus/totus

Packagist project page