File tree 4 files changed +388
-301
lines changed
4 files changed +388
-301
lines changed Original file line number Diff line number Diff line change 1
1
# php-ripple-lib
2
2
PHP API for interacting with the XRP Ledger
3
3
4
+ Upgrade guzzle to version 7.*
5
+
6
+ Min php supported version 7.2
7
+
4
8
## Installation
5
9
` composer require lessmore92/php-ripple-lib `
10
+
11
+
12
+ ## Sample Usage
13
+ ``` php
14
+ require_once "vendor/autoload.php";
15
+
16
+ $options = [
17
+ 'server' => 'https://s.altnet.rippletest.net:51234',
18
+ 'timeOut' => 5,
19
+ ];
20
+
21
+ $api = new \Lessmore92\Ripple\RippleAPI($options);
22
+ $server = $api->serverInfo();
23
+ var_dump($server);
24
+
25
+ $address = 'rEdhDpVvmryJcMNcFTzXW3hAmiCkUXUru6';
26
+ $balance = $api->accountInfo($address)->balance->toXrp();
27
+ var_dump($balance);
28
+
29
+ $txs = $api->accountTx($address, []);
30
+ var_dump($txs);
31
+
32
+ $fee = $api->getFee();
33
+ var_dump($fee);
34
+
35
+ ```
Original file line number Diff line number Diff line change 19
19
],
20
20
"minimum-stability" : " dev" ,
21
21
"require" : {
22
- "php" : " >7" ,
22
+ "php" : " >7.2 " ,
23
23
"lessmore92/php-ripple-keypairs" : " ^v1.0" ,
24
24
"lessmore92/php-ripple-binary-codec" : " ^v1.0" ,
25
- "guzzlehttp/guzzle" : " ^6.3 "
25
+ "guzzlehttp/guzzle" : " 7.* "
26
26
},
27
27
"autoload" : {
28
28
"psr-4" : {
You can’t perform that action at this time.
0 commit comments