mrzen/tigerbay

Tigerbay PHP Client Library

v1.6.0 2024-08-09 08:53 UTC

This package is auto-updated.

Last update: 2024-11-09 09:20:06 UTC


README

Usage

Initialize The Client

use Mrzen\Tigerbay;

$config = (new Tigerbay\Config())->setBaseURL($baseURL)         // Required
                                 ->setClientId($clientId)       // Required
                                 ->setSecret($clientSecret)     // Required
                                 ->setTimeout(10.0)             // Optional

$client = new Tigerbay\Client($config);

// Get cache stats

$stats = $client->stats();

echo 'System contains ' . $stats->getItemCount() . ' tours';