PHPackages                             tokenly/swapbot-op-return - 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. tokenly/swapbot-op-return

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

tokenly/swapbot-op-return
=========================

Encodes and Decodes OP\_RETURN data used to trigger custom Swapbot actions

17PHP

Since Jan 14Pushed 10y ago4 watchersCompare

[ Source](https://github.com/tokenly/swapbot-op-return)[ Packagist](https://packagist.org/packages/tokenly/swapbot-op-return)[ RSS](/packages/tokenly-swapbot-op-return/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Summary
-------

[](#summary)

Encodes and Decodes OP\_RETURN data used to trigger custom Swapbot actions.

Usage
-----

[](#usage)

Here is an example of how to create Swapbot OP\_RETURN data to specify a custom destination for a swap:

```
$new_destination_address = '1JztLWos5K7LsqW5E78EASgiVBaCe6f7cD';
$encoder = new Tokenly\SwapbotOpReturn\Encoder();
$hex_string = $encoder->buildDestinationInstruction($new_destination_address);

echo $hex_string.PHP_EOL;

// 53574150424f540000c56cb39f9b289c0ec4ef6943fa107c904820fe0980df2772
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b86e6a54873d5dd61d3682a3be00127af3b7b2b5c53eb070b160e29789d4c0d?d=identicon)[dweller](/maintainers/dweller)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/tokenly-swapbot-op-return/health.svg)

```
[![Health](https://phpackages.com/badges/tokenly-swapbot-op-return/health.svg)](https://phpackages.com/packages/tokenly-swapbot-op-return)
```

PHPackages © 2026

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