All Projects → foxrp → rippled-php

foxrp / rippled-php

Licence: MIT license
A PHP library for rippled (XRP Ledger) communication.

Programming Languages

PHP
23972 projects - #3 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to rippled-php

xrpl-dev-portal
Source code for xrpl.org including developer documentation
Stars: ✭ 330 (+900%)
Mutual labels:  ripple, xrp, xrp-ledger
explorer
Open Source XRP Ledger Explorer
Stars: ✭ 18 (-45.45%)
Mutual labels:  ripple, xrp, xrp-ledger
XpringKit
XpringKit provides a Swift SDK for interacting with Xpring Protocols (XRP/PayID/ILP). This library is deprecated.
Stars: ✭ 23 (-30.3%)
Mutual labels:  ripple, xrp, xrp-ledger
CoinGecko
A C++20 library for CoinGecko--a cryptocurrency data service.
Stars: ✭ 69 (+109.09%)
Mutual labels:  ripple, api-client
Rippled
Decentralized cryptocurrency blockchain daemon implementing the XRP Ledger in C++
Stars: ✭ 4,029 (+12109.09%)
Mutual labels:  xrp, xrp-ledger
node-bitstamp
bitstamp REST and WS API Node.js client 💵
Stars: ✭ 58 (+75.76%)
Mutual labels:  ripple, xrp
nis-python-client
Python client for NEM NIS API (https://nemproject.github.io). XEM\NEM\Crypto
Stars: ✭ 16 (-51.52%)
Mutual labels:  api-client, blockchain-technology
artunis-mobile
XRP Wallet app for Android and iOS, built in React Native.
Stars: ✭ 23 (-30.3%)
Mutual labels:  ripple, xrp
crypto-quotes
100+ Best of Crypto Quotes - I HODL, you HODL, we HODL! - BREAKING: BITCOIN JUST BROKE $22 000!
Stars: ✭ 12 (-63.64%)
Mutual labels:  ripple, xrp
upcloud-php-api
PHP client for UpCloud's API
Stars: ✭ 23 (-30.3%)
Mutual labels:  packagist, api-client
Coinapi Sdk
SDKs for CoinAPI
Stars: ✭ 238 (+621.21%)
Mutual labels:  ripple, api-client
private-packagist-api-client
Private Packagist API Client
Stars: ✭ 28 (-15.15%)
Mutual labels:  packagist, api-client
xrpl-py
A Python library to interact with the XRP Ledger (XRPL) blockchain
Stars: ✭ 70 (+112.12%)
Mutual labels:  xrp, xrp-ledger
TheWorldExchange
A purely client-side wallet and direct interface showcasing the full functionality of Ripple / blockchain.
Stars: ✭ 34 (+3.03%)
Mutual labels:  ripple, xrp
xrp-wallet
Offline/Cold wallet for XRP
Stars: ✭ 12 (-63.64%)
Mutual labels:  xrp, xrp-ledger
ripple-binary-codec
Convert between json and hex representations of transactions and ledger entries on the XRP Ledger. Moved to: https://github.com/XRPLF/xrpl.js/tree/develop/packages/ripple-binary-codec
Stars: ✭ 18 (-45.45%)
Mutual labels:  xrp, xrp-ledger
Aquarium
A minimalistic blockchain implementation
Stars: ✭ 27 (-18.18%)
Mutual labels:  blockchain-technology
pygoodwe
Python library for querying Goodwe API
Stars: ✭ 20 (-39.39%)
Mutual labels:  api-client
RippleLayout
水波纹选中控件(A ripple layout with selected state)
Stars: ✭ 25 (-24.24%)
Mutual labels:  ripple
blockgeeks-build-blockchain-advanced
Code that shows how to build your own Bitcoin-like blockchain with JavaScript.
Stars: ✭ 24 (-27.27%)
Mutual labels:  blockchain-technology

rippled-php

Build Status Coverage Status Latest Stable Version Latest Unstable Version

This is a PHP library for communicating with the XRP Ledger.

In addition to wrapping the rippled API, it validates method/transaction parameters and normalizes responses.

Refer to the API Documentation in the Ripple Developer Portal for methods, parameters, and expected responses.

Dependencies

This project implements PSR-7 via the use of HTTPLUG so the developer can select the HTTP Client best suited for their architecture.

If you do not have a preference, simply run the command below and proceed to the installation section.

composer require php-http/guzzle6-adapter php-http/message

Installation

composer require foxrp/rippled-php

QuickStart

Retrieve Balance

<?php

use FOXRP\Rippled\Client;

$client = new Client('https://s1.ripple.com:51234');

$balance = null;

$response = $client->send('account_info', [
    'account' => 'rG1QQv2nh2gr7RCZ1P8YYcBUKCCN633jCn'
]);

// Set balance if successful.
if ($response->isSuccess()) {
    $data = $response->getResult();
    $balance = $data['account_data']['Balance'];
}

See Exception Handling for more control over handling errors.

Documentation

Unit Testing

Run the unit test suite:

make test

Run test coverage:

make cov

Once you run the coverage command, open tests/coverage/index.html to view the report.

Functional Testing

Functional tests run code against a live server. Of course this should be run against a test server.

If you don't already have test accounts, create 2 and note the account id and secret for each.

https://developers.ripple.com/xrp-test-net-faucet.html

The functional test suite loads endpoint and account info from .env.test.

If you haven't already, copy .env.test.dist to .env.test and add your account info.

FOXRP_ACCT_1_ID requires 100 XRP for the tests.

Use the following command to run the functional test suite.

make testf

Contribute

PRs & New Issues are welcome!

XRP Tip Jar: rwSZu5vAgPEdoDpYx9qZtqtHRDcFwCooqw

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].