Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lessmore92/php-ripple-lib
PHP API for interacting with the XRP Ledger
https://github.com/lessmore92/php-ripple-lib
Last synced: about 1 month ago
JSON representation
PHP API for interacting with the XRP Ledger
- Host: GitHub
- URL: https://github.com/lessmore92/php-ripple-lib
- Owner: lessmore92
- License: mit
- Created: 2021-01-11T17:27:10.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-06-11T16:46:01.000Z (over 1 year ago)
- Last Synced: 2024-10-20T18:12:11.612Z (2 months ago)
- Language: PHP
- Size: 21.5 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# php-ripple-lib
PHP API for interacting with the XRP LedgerUpgrade guzzle to version 7.*
Min php supported version 7.2
## Installation
`composer require lessmore92/php-ripple-lib`## Sample Usage
```php
require_once "vendor/autoload.php";$options = [
'server' => 'https://s.altnet.rippletest.net:51234',
'timeOut' => 5,
];$api = new \Lessmore92\Ripple\RippleAPI($options);
$server = $api->serverInfo();
var_dump($server);$address = 'rEdhDpVvmryJcMNcFTzXW3hAmiCkUXUru6';
$balance = $api->accountInfo($address)->balance->toXrp();
var_dump($balance);$txs = $api->accountTx($address, []);
var_dump($txs);$fee = $api->getFee();
var_dump($fee);```