in

Ripple : rippled-php: A call for testing & feedback

Ripple update: rippled-php: A call for testing & feedback



Programming libraries covering the most common languages are essential to the adoption and integration of the XRP ledger in the web space.

Hard work has been put into the development of a quality `rippled` PHP library. For those who don’t know, PHP is the most common scripting language used for website development.

While there is no stable release, it’s at a point where it is usable and could benefit from the eyes of PHP developers.

Call to action tweet, RTs appreciated!: https://twitter.com/mikemilano/status/1011224872729493505

Our testing shows API calls and transactions work well. We’re obviously looking for issues there, but also interested in issues or comments on the developer experience.

**About the Library**

`rippled-php` facilitates public API requests and transaction operations. It has been developed with great care utilizing PHP 7 with its strict declarations/return types. The admin API will be covered in a later phase.

API Example:

$client = new Client(‘https://s1.ripple.com:51234’);
$response = $client->send(‘account_info’, [
‘account’ => ‘rG1QQv2nh2gr7RCZ1P8YYcBUKCCN633jCn’
]);

Transaction Example:

$client = new Client(‘https://s1.ripple.com:51234’);
$txParams = [
‘TransactionType’ => ‘Payment’,
‘Account’ => ‘rQBnNY5w5cALHbMaue2VefSzuBfxafwqp9’,
‘Destination’ => ‘rnQ1WgToG2RL9Fjmofif9ixYVgJTi6BLas’,
‘Amount’ => ‘1000000’,
‘Fee’ => ‘000012’
];

$trans = new Transaction($this->getTx(), $this->client);
$secret = ‘sxxxxxxxxxxxxxxxxxxxxxxxxxxxxx’;
$response = $trans->submit($secret);

I’ve omitted exception handling for brevity in this post, but a hierarchy of exceptions are available for precisely the level of error handling you wish to acheive.

Local signing is achieve with a separate project, [xrpsign-cli](https://github.com/foxrp/xrpsign-cli). It’s a NodeJS based CLI app which takes transaction parameters and a secret, and outputs a signed transaction in JSON format. `xrpsign-cli` app can be used by any application or script where local signing is required.

Ultimately we want to implement local signing in PHP itself, however the options so far are far more hassle to compile and configure than installing `xrpsign-cli` with `npm`. If you think you can help with that, please reach out!

You can find the rippled-php repo here: https://github.com/foxrp/rippled-php

If you are remotely comfortable with PHP, following the [API documentation](https://developers.ripple.com/rippled-api.html) along with project is a great way to learn about the XRP Ledger.




View the link

About Ripple (XRP)



Ripple connects banks, payment providers and digital asset exchanges via RippleNet to provide one frictionless experience to send money globally. Banks and payment providers can use the digital asset XRP to further reduce their costs and access new markets. XRP is the fastest and most scalable digital asset today.

Author: foxrp

Score: 39

Don’t forget to share the post if you love it !

Ripple : Currencies Direct announces Successful trial and implementation of XRapid

Ethereum : GPUhoarder & Seth Estrada live streaming (mining/FGPA Chat)