PHPackages                             turtlecoin/turtlecoin-rpc-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. turtlecoin/turtlecoin-rpc-php

AbandonedArchivedLibrary[API Development](/categories/api)

turtlecoin/turtlecoin-rpc-php
=============================

A PHP wrapper for TurtleCoin's RPC interfaces

v2.1.1(7y ago)1359151MITPHPPHP &gt;=7.1.3

Since Mar 9Pushed 7y ago1 watchersCompare

[ Source](https://github.com/timmcleod/turtlecoin-rpc-php)[ Packagist](https://packagist.org/packages/turtlecoin/turtlecoin-rpc-php)[ RSS](/packages/turtlecoin-turtlecoin-rpc-php/feed)WikiDiscussions master Synced today

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

TurtleCoin RPC PHP
==================

[](#turtlecoin-rpc-php)

TurtleCoin RPC PHP is a PHP wrapper for the TurtleCoin JSON-RPC interfaces.

Requires TurtleCoin v0.8.4+

---

1. [Install TurtleCoin RPC PHP](#install-turtlecoin-rpc-php)
2. [Examples](#examples)
3. [Docs](#docs)
4. [License](#license)

---

Install TurtleCoin RPC PHP
--------------------------

[](#install-turtlecoin-rpc-php)

This package requires PHP &gt;=7.1.3. Require this package with composer:

```
composer require turtlecoin/turtlecoin-rpc-php

```

Examples
--------

[](#examples)

```
use TurtleCoin\TurtleCoind;

$config = [
    'rpcHost' => 'http://127.0.0.1',
    'rpcPort' => 11898,
];

$turtlecoind = new TurtleCoind($config);
echo $turtlecoind->getBlockCount();

> {"id":2,"jsonrpc":"2.0","result":{"count":784547,"status":"OK"}}
```

```
use TurtleCoin\TurtleService;

$config = [
    'rpcHost'     => 'http://127.0.0.1',
    'rpcPort'     => 8070,
    'rpcPassword' => 'test',
];

$turtleService = new TurtleService($config);
echo $turtleService->getBalance($walletAddress);

> {"id":0,"jsonrpc":"2.0","result":["availableBalance":100,"lockedAmount":50]}
```

Optionally, you may access details about the response:

```
$response = $turtleService->getBalance($walletAddress);

// The result field from the RPC response
$response->result();

// RPC response as JSON string
$response->toJson();

// RPC response as an array
$response->toArray();

// Or other response details
$response->getStatusCode();
$response->getProtocolVersion();
$response->getHeaders();
$response->hasHeader($header);
$response->getHeader($header);
$response->getHeaderLine($header);
$response->getBody();
```

Docs
----

[](#docs)

Documentation of the TurtleCoin RPC API and more PHP examples for this package can be found at [api-docs.turtlecoin.lol](https://api-docs.turtlecoin.lol).

License
-------

[](#license)

TurtleCoin RPC PHP is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

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

Every ~29 days

Recently: every ~15 days

Total

9

Last Release

2750d ago

Major Versions

v1.2.2 → v2.0.02018-10-21

### Community

Maintainers

![](https://www.gravatar.com/avatar/af7a863a87db39ca9d53bfa849bcbde0b465efaa9f74cb18d53fb2c8e261474a?d=identicon)[timmcleod](/maintainers/timmcleod)

---

Top Contributors

[![timmcleod](https://avatars.githubusercontent.com/u/1099280?v=4)](https://github.com/timmcleod "timmcleod (20 commits)")[![zpalmtree](https://avatars.githubusercontent.com/u/22151537?v=4)](https://github.com/zpalmtree "zpalmtree (3 commits)")

---

Tags

phpTurtleCoin

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/turtlecoin-turtlecoin-rpc-php/health.svg)

```
[![Health](https://phpackages.com/badges/turtlecoin-turtlecoin-rpc-php/health.svg)](https://phpackages.com/packages/turtlecoin-turtlecoin-rpc-php)
```

###  Alternatives

[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[mailchimp/transactional

458.9M16](/packages/mailchimp-transactional)[resend/resend-php

Resend PHP library.

564.7M21](/packages/resend-resend-php)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

762.6k](/packages/scriptdevelop-whatsapp-manager)[sandorian/moneybird-api-php

Moneybird API client for PHP

127.3k](/packages/sandorian-moneybird-api-php)

PHPackages © 2026

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