mascotgaming/php-api-client

There is no license information available for the latest version (v1.0.1) of this package.

v1.0.1 2025-04-16 12:12 UTC

This package is auto-updated.

Last update: 2025-04-16 12:15:11 UTC


README

Operator API v1 client for PHP.

Example:

<?php
use mascotgaming\mascot\api\client\Client;

require __DIR__.'/vendor/autoload.php';

$client = new Client(array(
        // This is the base URL for the Operator API v1.
        'url' => 'https://api.mascot.games/v1/',

        // This is the file path for the Operator API v1 key.
        'sslKeyPath' => __DIR__.'/ssl/apikey.pem',

        // Sometimes it's useful to enable debug mode.
        // 'debug' => true,
));

// This will list all games.
var_export($client->listGames(array()));