PHPackages                             crypto2/php-xrpl-tagged-address-codec - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. crypto2/php-xrpl-tagged-address-codec

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

crypto2/php-xrpl-tagged-address-codec
=====================================

Encode and Decode an XRPL account address and destination tag to/from X-formatted (tagged) address

1.0.0(6y ago)0172MITPHPPHP &gt;=5.3

Since Feb 1Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Crypto2/php-xrpl-tagged-address-codec)[ Packagist](https://packagist.org/packages/crypto2/php-xrpl-tagged-address-codec)[ RSS](/packages/crypto2-php-xrpl-tagged-address-codec/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

XRPL Tagged Address Codec for PHP
=================================

[](#xrpl-tagged-address-codec-for-php)

#### Encode and Decode an XRPL account address and destination tag to/from X-formatted (tagged) address.

[](#encode-and-decode-an-xrpl-account-address-and-destination-tag-tofrom-x-formatted-tagged-address)

Destination tags provide a way for exchanges, payment processors, corporates or entities which accept incoming payments, escrows, checks and similar transcations to use a single receiving wallet while being able to disambiguate incoming transactions by instructing the senders to include a destination tag.

This package allows encoding and decoding from an XRPL address and destination tag to / from 'Tagged Addresses', containing both the destination account address and tag in one string. This way users can simply copy-paste the string, eliminating possible user error when copying / entering a numeric destination tag.

#### Hopefully all exchanges, wallets &amp; other software using destination tags will implement this address codec. A migration period will be required to allow users to enter both address formats.

[](#hopefully-all-exchanges-wallets--other-software-using-destination-tags-will-implement-this-address-codec-a-migration-period-will-be-required-to-allow-users-to-enter-both-address-formats)

#### The website [https://xrpaddress.info](https://xrpaddress.info/) is available for users, exchanges and developers to provide some context and best practices.

[](#the-website-httpsxrpaddressinfo-is-available-for-users-exchanges-and-developers-to-provide-some-context-and-best-practices)

Install
-------

[](#install)

Install with composer: crypto2/php-xrpl-tagged-address-codec

Use
---

[](#use)

### Encoding

[](#encoding)

require('./vendor/autoload.php');

$x = new Crypto2\\XAddress();
//Main Net - No Tag
$address = $x-&gt;Encode('rGWrZyQqhTp9Xu7G5Pkayo7bXjH4k4QYpf', null, false);
//Main Net - With Tag
$address = $x-&gt;Encode('rGWrZyQqhTp9Xu7G5Pkayo7bXjH4k4QYpf', 12345, false);
//Test Net - With Tag
$address = $x-&gt;Encode('rGWrZyQqhTp9Xu7G5Pkayo7bXjH4k4QYpf', 12345, true);

### Decoding

[](#decoding)

require('./vendor/autoload.php');

$x = new Crypto2\\XAddress();
$tmp = $x-&gt;Decode('XVLhHMPHU98es4dbozjVtdWzVrDjtV8xvjGQTYPiAx6gwDC');

Return is an array with keys: address, dest\_tag, testnet
address: The Ripple address
dest\_tag: The Destination Tag or null if one wasn't set in the tag
testnet: true if it is a testnet address, false otherwise

Credits
-------

[](#credits)

This readme based on the one for the Java/NPM package at

This concept is based on the [concept](https://github.com/xrp-community/standards-drafts/issues/6) from [@nbougalis](https://github.com/nbougalis)

Big thanks to [@sublimator](https://github.com/sublimator) for his fiddles, ideas and fixes and [@intelliot](https://github.com/intelliot) for the idea of adding an `X` / `T` prefix for (new) address recognizability.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2344d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7625236?v=4)[Crypto²](/maintainers/Crypto2)[@Crypto2](https://github.com/Crypto2)

---

Top Contributors

[![Crypto2](https://avatars.githubusercontent.com/u/7625236?v=4)](https://github.com/Crypto2 "Crypto2 (7 commits)")

### Embed Badge

![Health badge](/badges/crypto2-php-xrpl-tagged-address-codec/health.svg)

```
[![Health](https://phpackages.com/badges/crypto2-php-xrpl-tagged-address-codec/health.svg)](https://phpackages.com/packages/crypto2-php-xrpl-tagged-address-codec)
```

###  Alternatives

[nimiq/xpub

A simple class to derive BTC and ETH extended public keys and addresses without GMP.

124.0k](/packages/nimiq-xpub)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
