Skip to content
CloudBank PHP SDK
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Samples
src/CloudBank
LICENSE
README.md
composer.json

README.md

CloudBank PHP SDK

SDK helps to accept CloudCoins on any website. It uses CloudBank protocol to talk to a remote CloudBank.

https://github.com/worthingtonse/Bank

SDK implements the following services:

getVersion()
printWelcome()
echoRAIDA()
depositStack()
withdrawStack()
getReceipt()
writeCheck()
getCashCheckURL()

Basic usage:

	require __DIR__ . "CloudBank/vendor/autoload.php";

	use CloudBank\CloudBank;

	$cBank = new CloudBank([
		"url" => 'https://bank.cloudcoin.global/service',
		"privateKey" => "1DECE3AF-43EC-435B-8C39-E2A5D0EA8677",
		"account" => "myaccount@protonmail.com",
		"debug" => false
	]);

        echo "CloudBank Version: " . $cBank->getVersion() . "\n";

	$welcome = $cBank->printWelcome();
	echo $welcome->message;

Other examples can be found in 'Samples' folder

You can’t perform that action at this time.