ruhul / bog-laravel
此包已被废弃且不再维护。未建议任何替代包。
为laravel提供的BlueOceanGaming无缝集成API库包
dev-main
2022-10-03 07:25 UTC
This package is auto-updated.
Last update: 2024-03-26 18:03:36 UTC
README
为laravel提供的BlueOceanGaming无缝集成API库包。
完整文档即将推出.........
快速安装
composer require ruhul/bog-laravel
安装ruhul/bog-laravel包后,您需要使用以下Artisan命令进行安装
php artisan bogaming:install
用法
// fetch all games return BlueOceanGamiang::getGamelist([ 'currency' => 'USD' ]); // create player account to blueoceangaming system return BlueOceanGaming::createPlayer([ 'user_username' => 'xxxxxx', 'user_password' => 'xxxxxx', 'currency' => 'USD' ]); // lauchning game return BlueOceanGaming::getGame([ 'user_username' => 'xxxxxx', 'user_password' => 'xxxxxx', 'currency' => 'USD', 'lang' => 'en', // by default english 'game_id' => 'xxxx', 'homeurl' => 'http://yoursite.com', 'cashierurl' => 'http://yousite.com/cashier', 'play_for_fun' => true, // if false then real mode ]);
环境
#For staging BOG_SANDBOX=true, for production BOG_SANDBOX=false BOG_SANDBOX=true BOG_PASSWORD="blueoceanaming API password" BOG_USERNAME="blueoceanaming API login"
贡献
欢迎提交pull请求。对于重大变更,请先打开一个问题来讨论您想进行哪些更改。
请确保适当更新测试。