定制 casino25/php-api-client 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

casino25/php-api-client

最新稳定版本:v1.2.2

Composer 安装命令:

composer require casino25/php-api-client

包简介

README 文档

README

PHP API Client for Casino v2.5

Requirements

  • PHP 5.6.3 or higher
  • The phpseclib3 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([]));

统计信息

  • 总下载量: 10.7k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2024-06-21