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

ActiveLibrary

tokenly/counterparty-op-return-builder
======================================

Composes counterparty and bitcoin transactions

v1.0.0(8y ago)13.8k1MITPHPPHP &gt;=5.6.0CI failing

Since Mar 24Pushed 6y ago3 watchersCompare

[ Source](https://github.com/tokenly/counterparty-op-return-builder)[ Packagist](https://packagist.org/packages/tokenly/counterparty-op-return-builder)[ RSS](/packages/tokenly-counterparty-op-return-builder/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (2)Used By (0)

Counterparty OP\_RETURN Builder
===============================

[](#counterparty-op_return-builder)

[![Build Status](https://camo.githubusercontent.com/21db29f84c6ddb7bacf876be301eb5361be5a33bc5856244805a003238801923/68747470733a2f2f7472617669732d63692e6f72672f746f6b656e6c792f636f756e74657270617274792d6f702d72657475726e2d6275696c6465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/tokenly/counterparty-op-return-builder)

Composes OP\_RETURN data for Counterparty sends

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

[](#installation)

`composer require tokenly/counterparty-op-return-builder`

Usage
-----

[](#usage)

```
$op_return_builder = new OpReturnBuilder();

$destination = '1AAAA1111xxxxxxxxxxxxxxxxxxy43CZ9j';
$txid = 'deadbeef00000000000000000000000000000000000000000000000000001111';

// Send 100 of asset SOUP
$op_return_hex = $op_return_builder->buildOpReturnForSend(100, 'SOUP', $destination, $txid);

print $op_return_hex.PHP_EOL;
// "95f8483a315279d12a7314a8e82019d7fa6ba1354f09c61480dedf76e038875f405090c08be78ef8c7a4b60bb4"
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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

2971d ago

### Community

Maintainers

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

---

Top Contributors

[![cryptonaut420](https://avatars.githubusercontent.com/u/8463048?v=4)](https://github.com/cryptonaut420 "cryptonaut420 (1 commits)")[![SlickTheNick](https://avatars.githubusercontent.com/u/1435056?v=4)](https://github.com/SlickTheNick "SlickTheNick (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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