cyjan/999dice
Composer 安装命令:
composer require cyjan/999dice
包简介
999 Dice PHP Library
README 文档
README
It's initial version of 999dice.com PHP library!
999dice PHP library on Packages.org
Install
You can add 999dice as a dependency using the composer.phar CLI:
# Install Composer curl -sS https://getcomposer.org/installer | php # Add dependency php composer.phar require reilag/999dice
After installing, you need to require Composer's autoloader:
require 'vendor/autoload.php';
Examples:
Create connection:
$apiKey = '***** Your API key *****'; $username = '***** Your login *****'; $password = '***** Your password *****'; $totp = '***** Your Totp *****'; $three9DiceClient = new \Three9Dice\Client( new \Three9Dice\User($apiKey, $username, $password, $totp) );
Place BET:
/* Generate bet bet before placing */ $bet = new \Three9Dice\Bet\Bet( // Amount in satoshi 10000, // Currency ( default ) \Three9Dice\Constant::CURRENCY_BTC, // GuessRange \Three9Dice\GuessRange\GuessRange::generatePercent(49.95, true) ); $three9DiceClient->placeBet( $bet );
统计信息
- 总下载量: 24
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2019-08-30