mrzen/tigerbay

Tigerbay PHP Client Library

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

This package is auto-updated.

Last update: 2024-12-09 09:28:51 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';