Requirements
- PHP 5.3+
- Composer
- GuzzleHTTP 7+
Install
composer require slotsgateway/slotsgateway-php-clientUsage
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.