PHPackages                             itcoder/jsonrpc-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. [API Development](/categories/api)
4. /
5. itcoder/jsonrpc-client

ActiveLibrary[API Development](/categories/api)

itcoder/jsonrpc-client
======================

php json-rpc client for connection golang based on jsonrpc protocol v1

00PHP

Since Sep 24Pushed 7y ago1 watchersCompare

[ Source](https://github.com/yuzic/jsonrpc-client)[ Packagist](https://packagist.org/packages/itcoder/jsonrpc-client)[ RSS](/packages/itcoder-jsonrpc-client/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

JSON-RPC client for PHP
=======================

[](#json-rpc-client-for-php)

Overview
--------

[](#overview)

This package based on JSON-RPC 1.0 Specification

[specification\_v1](https://www.jsonrpc.org/specification_v1).

Features
--------

[](#features)

- Correct: fully compliant with the [JSON-RPC 2.0 specifications](http://www.jsonrpc.org/specification)

Examples
--------

[](#examples)

### Client

[](#client)

```
$socketStream = new SocketStream('127.0.0.1:1234', 1000);
$tcpConnection =  new TcpConnection($socketStream);

$client  = new Client($tcpConnection);

$method = 'PackageJsonRpc.Push';
$params = [
    ['subscribe' => 1, 'validate' => true],
    ['message' => 'test message', 'check' => true],
];

foreach ($params as $p) {
    $result = $client->query($method, $p);

    var_dump($result);
}
```

### Server

[](#server)

*Server based on on this GOLANG lib [examples](https://github.com/yuzic/mqueue).*

Requirements
------------

[](#requirements)

- PHP &gt;= 7.2.9

License
-------

[](#license)

This package is released under an open-source license: [LGPL-3.0](https://www.gnu.org/licenses/lgpl-3.0.html)

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

[](#installation)

If you're using [Composer](https://getcomposer.org/), you can include this library ([itcoder/jsonrpc-client](https://packagist.org/packages/itcoder/jsonrpc-client)) like this:

```
composer require "itcoder/jsonrpc-client" "~0.1"

```

Getting started
---------------

[](#getting-started)

1. Try the examples. You can run the examples from the project directory like this: ```
    php examples/rpc-client.php

    ```

Unit tests
----------

[](#unit-tests)

You can run the suite of unit tests from the project directory like this:

```
php ./phpunit.phar

```

Author
------

[](#author)

\[Yuri Zhigadlo\] ()

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

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://avatars.githubusercontent.com/u/2697226?v=4)[itcoder](/maintainers/itcoder)[@ItCoder](https://github.com/ItCoder)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/itcoder-jsonrpc-client/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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