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

ActiveLibrary[API Development](/categories/api)

abraovic/peercoin-php-rpc
=========================

Peercoin JSON-RPC library

v1.0.1(6y ago)5243BSD-3-ClausePHPPHP &gt;=7.1

Since May 22Pushed 6y ago2 watchersCompare

[ Source](https://github.com/peercoin/peercoin-php-rpc)[ Packagist](https://packagist.org/packages/abraovic/peercoin-php-rpc)[ Docs](https://github.com/abraovic/peercoin_rpc)[ RSS](/packages/abraovic-peercoin-php-rpc/feed)WikiDiscussions master Synced yesterday

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

peercoin-php-rpc
================

[](#peercoin-php-rpc)

peercoin-php-rpc is a simple and minimal library made for communication with `peercoind` via JSON-RPC protocol for PHP 7.1+. Easiest way to use is to use composer. Otherwise include `RpcClient` class in your project an you are good to go.

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

[](#installation)

```
composer require abraovic/peercoin-php-rpc

```

How to use
----------

[](#how-to-use)

Here in an example on how to use this lib:

```
$client = new RpcClient("localhost");

try {
    $client->auth("peercoinrpc", "4sQWxWJdFcg3wNXm5kLAW5CXGRr9nsZQEaaGZd2pDhVH");
    $response = $client->getInfo()->getBlockCount()->execute();
} catch (\Peercoin\Exceptions\RpcException $e) {
    var_dump($e->getMessage());
}
```

Lib automatically performs a batch request if more than one method is in the chain. Response array will return responses in order in which methods are called.

Docker
------

[](#docker)

This lib includes docker environment with all extensions installed so you can try it. In order to use it run:

```
docker build -t peercoin/php-rpc -f .docker/Dockerfile .
docker-compose up -d

## after docker in up and running open the container go to /opt/examples and run test
docker exec -it peercoin_rpc /bin/bash
cd /opt/examples
php test.php
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.7% 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 ~345 days

Total

2

Last Release

2202d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0a613ca83fc2975f81840f6adfcc1dd8bfd86e5e389edb0d0317d163168a0183?d=identicon)[abraovic](/maintainers/abraovic)

---

Top Contributors

[![abraovic](https://avatars.githubusercontent.com/u/5057523?v=4)](https://github.com/abraovic "abraovic (11 commits)")[![peerchemist](https://avatars.githubusercontent.com/u/7818961?v=4)](https://github.com/peerchemist "peerchemist (1 commits)")

---

Tags

json-rpcpeercoinpeerocin-rpc

### Embed Badge

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

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

###  Alternatives

[jsonrpc/jsonrpc

JSON-RPC 2.0 client/server implementation

53407.1k4](/packages/jsonrpc-jsonrpc)[tivoka/tivoka

The universal JSON-RPC client/server library. JSON-RPC done right!

74159.0k3](/packages/tivoka-tivoka)[sergeyfast/eazy-jsonrpc

PHP JSON-RPC 2.0 Server/Client Implementation with SMD &amp; Swagger support

6164.2k](/packages/sergeyfast-eazy-jsonrpc)[upgate/laravel-jsonrpc

Laravel JSON-RPC 2.0 Server

5141.1k](/packages/upgate-laravel-jsonrpc)[timiki/rpc-server-bundle

JSON-RPC server bundle for symfony

2086.3k1](/packages/timiki-rpc-server-bundle)[idoit/apiclient

Easy-to-use, but feature-rich client library for i-doit's JSON-RPC API

189.4k](/packages/idoit-apiclient)

PHPackages © 2026

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