WAIJA

Tools / PHP Client

PHP Client

Composer package that wraps every Waija / Slotsgateway method and the callback helpers. Source: slotsgateway/slotsgateway-php-client.

Requirements

  • PHP 5.3+
  • Composer
  • GuzzleHTTP 7+

Install

composer require slotsgateway/slotsgateway-php-client

Usage

use Slotsgateway\Client;

$client = new Client([
  'api_login' => getenv('WAIJA_API_LOGIN'),
  'api_password' => getenv('WAIJA_API_PASSWORD'),
  'api_url' => getenv('WAIJA_API_BASE'),
]);

$player = $client->createPlayer('yourPlayerId9959', 'secret', 'USD');
$game = $client->getGame('yourPlayerId9959', 'softswiss/LuckyCrew', 'USD');

Callback helpers verify md5(timestamp + saltkey) and return the three response shapes from Balance and debit / credit.