Skip to content

Instantly share code, notes, and snippets.

@askaaqib
Created November 25, 2020 05:12
Show Gist options
  • Save askaaqib/d4dfc3b6f7573245a45b3a55691f98d9 to your computer and use it in GitHub Desktop.
Save askaaqib/d4dfc3b6f7573245a45b3a55691f98d9 to your computer and use it in GitHub Desktop.
Create Account - PHP Stellar API
<?php
declare(strict_types=1);
require "../vendor/autoload.php";
use ZuluCrypto\StellarSdk\Keypair;
$keyPair = keyPair::newFromRandom();
echo "<h3>Secret Key</h3>";
print_r($keyPair->getSecret());
echo "<h3>Public Key</h3>";
print_r($keyPair->getPublicKey());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment