PHP code example of kilvn / ripple-lib
1. Go to this page and download the library: Download kilvn/ripple-lib 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/ */
kilvn / ripple-lib example snippets
$url = 'https://s1.ripple.com:51234';
$address = "r9kiSEUEw6iSCNksDVKf9k3AyxjW3r1qPf";
$ripple = new \Kilvn\RippleAPI\RippleRpcClient($url);
$balance = $ripple->account_info(['account' => $address]);
dump($balance);
bash
> curl -sS https://getcomposer.org/installer | php