PHP code example of opensourcewebsite-org / php-stellar-sdk
1. Go to this page and download the library: Download opensourcewebsite-org/php-stellar-sdk library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
opensourcewebsite-org / php-stellar-sdk example snippets
$oldBalance = 1.605;
$newBalance = 1.61;
var_dump($oldBalance + 0.005);
var_dump($newBalance);
if ($oldBalance + 0.005 === $newBalance) {
print "Equal\n";
}
else {
print "Not Equal\n";
}
composer
"opensourcewebsite-org/php-stellar-sdk": "*"