ruhul/bog-laravel

This package is abandoned and no longer maintained. No replacement package was suggested.

BlueOceanGaming Seamless integration API library package for laravel

dev-main 2022-10-03 07:25 UTC

This package is auto-updated.

Last update: 2024-03-26 18:03:36 UTC


README

BlueOceanGaming Seamless integration API library package for laravel.

Packagist Downloads Packagist Stars

Complete documantation coming soon.........

Quick Installation

composer require ruhul/bog-laravel

Once the ruhul/bog-laravel package has been installed, you need to install using this artisan command:

php artisan bogaming:install

Usage

// 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
]);

Env

#For staging BOG_SANDBOX=true, for production BOG_SANDBOX=false
BOG_SANDBOX=true
BOG_PASSWORD="blueoceanaming API password"
BOG_USERNAME="blueoceanaming API login"

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT