PHPackages                             ecourty/xrpl-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. ecourty/xrpl-php

ActiveLibrary[API Development](/categories/api)

ecourty/xrpl-php
================

A PHP library to interact with an XRP Ledger Node.

1.3.0(1y ago)37.5k↓50%1MITPHPPHP &gt;=8.3CI passing

Since Jan 11Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/EdouardCourty/xrpl-php)[ Packagist](https://packagist.org/packages/ecourty/xrpl-php)[ Docs](https://github.com/EdouardCourty/xrpl-php)[ RSS](/packages/ecourty-xrpl-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (10)Versions (8)Used By (0)

xrpl-php
========

[](#xrpl-php)

[![PHP CI](https://github.com/EdouardCourty/xrpl-php/actions/workflows/php_ci.yml/badge.svg)](https://github.com/EdouardCourty/xrpl-php/actions/workflows/php_ci.yml)

A PHP library to interact with an XRP Ledger Node.

Table of Contents
-----------------

[](#table-of-contents)

- [Features](#features)
- [Installation](#installation)
- [Usage](#usage)
    - [XRP Ledger Communication](#xrp-ledger-communication)
    - [XRP Ledger Wallet Management](#xrp-ledger-wallet-management)
    - [Submitting a transaction to the XRP Ledger](#submitting-a-transaction-to-the-xrp-ledger)
    - [Code examples](#code-examples)
    - [Adding funds on a TestNet / DevNet wallet](#adding-funds-on-a-testnet--devnet-wallet)
- [Contracts](#contracts)
- [Examples](#examples)

Features
--------

[](#features)

This library provides a simple way to interact with an XRP Ledger Node.
It covers 100% of the public XRP Ledger API JSON-RPC methods at date of writing.

The library is designed to be simple to use and easy to understand.
`xrpl-php` allows you to:

- Communicate with the XRP Ledger
- Manage and generate XRP Ledger wallets
- Fund your testnet / devnet wallets using the Faucet
- Sign and submit transactions to the XRP Ledger
    - Support for Single-Signature and Multi-Signature transactions
- Translate XRP to Drops amounts

Here are some [usage examples](#examples).

Installation
------------

[](#installation)

Install the package using [Composer](https://getcomposer.org/):

```
composer require ecourty/xrpl-php
```

Usage
-----

[](#usage)

#### XRP Ledger Communication

[](#xrp-ledger-communication)

If you wish to communicate with an XRP Ledger Node, you can use the `XRPLClient` class as follows:

```
