PHPackages                             tokenly/xcpd-client - 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/xcpd-client

ActiveLibrary

tokenly/xcpd-client
===================

A client library for the counterparty API

v1.0.0(8y ago)15.6k21MITPHPPHP &gt;=5.4.0CI failing

Since Mar 14Pushed 6y ago3 watchersCompare

[ Source](https://github.com/tokenly/xcpd-client)[ Packagist](https://packagist.org/packages/tokenly/xcpd-client)[ RSS](/packages/tokenly-xcpd-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (1)

The Counterparty Client component for Tokenly.

[![Build Status](https://camo.githubusercontent.com/3abee36bb7573a984ee4da89a4396df6f689f2b0222ee43b4e37543c7aff6185/68747470733a2f2f7472617669732d63692e6f72672f746f6b656e6c792f786370642d636c69656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/tokenly/xcpd-client)

A simple PHP client for the Counterparty API.

### Add the Laravel package via composer

[](#add-the-laravel-package-via-composer)

```
composer require tokenly/xcpd-client

```

Usage with Laravel
------------------

[](#usage-with-laravel)

The service provider will automatically be registered in a Laravel 5.5+ application.

### Set the environment variables

[](#set-the-environment-variables)

```
XCPD_CONNECTION_STRING="http://127.0.0.1:4000"
XCPD_RPC_USER="rpcusername"
XCPD_RPC_PASSWORD="rpcpassword"

```

### Usage Example with Laravel

[](#usage-example-with-laravel)

```
$xcpd_client = app('Tokenly\CounterpartyClient\CounterpartyClient');
$response_data = $xcpd_client->get_block_info(['block_index' => 312600]);
/*
{
    "messages_hash": "72573bd491fe99a1ec5dfbd6b50d90184c242685bcee840557c5c2dc3f43da5b",
    "difficulty": 18736441558.310238,
    "block_hash": "00000000000000001af96dce9fb5d8e095257955c79d0b41ca64a2d69e664858",
    "previous_block_hash": "000000000000000010498d6e36255306e82ff9d7602bde867cb1226cceffa8aa",
    "txlist_hash": "cd868428581392142fdaef896ece4ea338d4fa286db1b873ea192789ccfb3f91",
    "block_time": 1406404765,
    "ledger_hash": "f0dfb4db2151bc2c427cace36f921dd992d5f640b654acb44709f3d44820c014",
    "block_index": 312600
}
*/
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

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

2985d ago

### 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 (15 commits)")[![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-xcpd-client/health.svg)

```
[![Health](https://phpackages.com/badges/tokenly-xcpd-client/health.svg)](https://phpackages.com/packages/tokenly-xcpd-client)
```

###  Alternatives

[n98/magerun

Tools for managing Magento projects and installations

1.4k264.7k7](/packages/n98-magerun)[n98/magerun2

Tools for managing Magento projects and installations

928244.3k6](/packages/n98-magerun2)[razorpay/razorpay

Razorpay PHP Client Library

2024.8M44](/packages/razorpay-razorpay)[pubnub/pubnub

This is the official PubNub PHP SDK repository.

1314.6M17](/packages/pubnub-pubnub)[culqi/culqi-php

Cliente Culqi API para PHP

41356.8k1](/packages/culqi-culqi-php)[ahmadawais/sendy-php-api

Sendy PHP API Wrapper: Complete API interfacing.

8673.5k](/packages/ahmadawais-sendy-php-api)

PHPackages © 2026

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