casino25 / php-api-client
There is no license information available for the latest version (v1.3.2) of this package.
Operator API v1 client for PHP.
v1.3.2
2026-05-07 11:49 UTC
Requires
- php: >=5.6.1
- ext-curl: *
- ext-openssl: *
- fguillot/json-rpc: 1.2.5
- phpseclib/phpseclib: ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.19
- phpunit/phpunit: ^5.7
README
PHP API Client for Casino v2.5
Requirements
- PHP 5.6.3 or higher
- The phpseclib library.
- (required for secure 64-bit nonce generation used by the signature mechanism)
- OpenSSL and cURL extensions (required by json-rpc client)
Example of usage:
<?php use casino25\api\client\Client; require __DIR__.'/vendor/autoload.php'; $client = new Client(array( 'url' => 'https://api.example.com/v1/', // You'll get it with documentation. 'sslKeyPath' => __DIR__.'/ssl/apikey.pem', )); var_export($client->listGames());
Example of usage with signature authentication method:
NOTE: Please refer to corresponding documentation regarding the "Signature authentication method".
<?php use casino25\api\client\Client; require __DIR__.'/vendor/autoload.php'; $client = new Client(array( 'url' => 'https://customer.exammple.com/v1/signed/', 'debug' => true, 'ssl_verification' => false, 'signature_verification' => true, 'signature' => array( 'key_id' => 'example-key', 'key_value' => 'ExampleKeyValue', 'casino_id' => $myCasinoID, 'nonce_start' => $randomNonceInt64, ), )); var_export($client->listGames([]));