mascotgaming/php-api-client

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

v1.0.0 2024-09-30 10:25 UTC

This package is auto-updated.

Last update: 2025-03-29 01:09:18 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()));