PHPackages                             sergeyfast/eazy-jsonrpc - 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. sergeyfast/eazy-jsonrpc

ActiveLibrary[API Development](/categories/api)

sergeyfast/eazy-jsonrpc
=======================

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

v3.0.3(4y ago)6164.2k20[2 issues](https://github.com/sergeyfast/eazy-jsonrpc/issues)MITPHPPHP &gt;=7.2.0CI failing

Since Apr 5Pushed 4y ago7 watchersCompare

[ Source](https://github.com/sergeyfast/eazy-jsonrpc)[ Packagist](https://packagist.org/packages/sergeyfast/eazy-jsonrpc)[ Docs](https://github.com/sergeyfast/eazy-jsonrpc/)[ RSS](/packages/sergeyfast-eazy-jsonrpc/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (3)Versions (6)Used By (0)

eazy-jsonrpc
============

[](#eazy-jsonrpc)

[![Latest Version](https://camo.githubusercontent.com/6293049d5929df8fcb5732054277a6552ff06c8eabc0be8c230a3ebddacaeb19/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f736572676579666173742f65617a792d6a736f6e7270632e7376673f7374796c653d666c61742d737175617265)](https://github.com/sergeyfast/eazy-jsonrpc/releases)[![Total Downloads](https://camo.githubusercontent.com/941e31cd40e1616860022b3914a4f06706174f7a42f49f87bb783f022eb6d3d3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736572676579666173742f65617a792d6a736f6e7270632e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sergeyfast/eazy-jsonrpc)

PHP JSON-RPC 2.0 Server/Client Implementation with Automatic Client Class Generation via SMD

Server
------

[](#server)

SMD Schema available via /server.php?smd

**Public Namespace**

- Inherits your exposed class from BaseJsonRpcServer or create `new BaseJsonRpcServer( $instance );`
- `$server->Execute();`

**Multiple Namespaces**

- Create `new BaseJsonRpcServer();`
- Call `$server->RegisterInstance( $instance, $namespace )` as many times as you need
- `$server->Execute();`

Client
------

[](#client)

- Generate Client from SMD Schema from generator/ `php JsonRpcClientGenerator.php  `
- Use it:

```
$client = ::GetInstance();

try {
  $result = $client->Method();
} catch (BaseJsonRpcException $e) {
  // work with exception
}

```

Client with typed returns by rpcgen
-----------------------------------

[](#client-with-typed-returns-by-rpcgen)

- Generate Client from SMD Schema with [rpcgen](https://github.com/vmkteam/rpcgen) and save it to `RpcClient.php`
- Use it:

```
$client = RpcClient::GetInstance();

try {
  $result = $client->Method();
} catch (BaseJsonRpcException $e) {
  // work with exception
}

```

Doc
---

[](#doc)

- cd generator
- `php SmdToSwaggerConverter.php 'http://eazyjsonrpc/tests/example-server.php?smd' eazyjsonrpc ../doc/swagger.json`
- open

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity40

Moderate usage in the ecosystem

Community20

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 64.3% 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 ~56 days

Total

5

Last Release

1644d ago

Major Versions

v2.0.0 → v3.0.02021-04-06

PHP version history (2 changes)v2.0.0PHP &gt;=5.4.0

v3.0.0PHP &gt;=7.2.0

### Community

Maintainers

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

---

Top Contributors

[![sergeyfast](https://avatars.githubusercontent.com/u/2264779?v=4)](https://github.com/sergeyfast "sergeyfast (27 commits)")[![sas1024](https://avatars.githubusercontent.com/u/7388179?v=4)](https://github.com/sas1024 "sas1024 (7 commits)")[![shuler](https://avatars.githubusercontent.com/u/1611449?v=4)](https://github.com/shuler "shuler (5 commits)")[![agentsib](https://avatars.githubusercontent.com/u/1577055?v=4)](https://github.com/agentsib "agentsib (1 commits)")[![ferossa](https://avatars.githubusercontent.com/u/16033705?v=4)](https://github.com/ferossa "ferossa (1 commits)")[![ha-sash](https://avatars.githubusercontent.com/u/3999204?v=4)](https://github.com/ha-sash "ha-sash (1 commits)")

---

Tags

json-rpc-clientjson-rpc-serverjsonrpc2smdsmd-schemajsonrpcjson-rpcjsonrpc2rpc2smdjson rpc 2

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sergeyfast-eazy-jsonrpc/health.svg)

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[cranetm/yii2-json-rpc-2.0

JSON RPC 2.0 for Yii2 strict type validation of request and response data

2679.6k1](/packages/cranetm-yii2-json-rpc-20)[nkl-kst/the-sports-db

PHP library to get sports data from TheSportsDB (https://www.thesportsdb.com)

271.2k](/packages/nkl-kst-the-sports-db)

PHPackages © 2026

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