PHPackages                             xujif/guzzle-json-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. [HTTP &amp; Networking](/categories/http)
4. /
5. xujif/guzzle-json-rpc

ActiveLibrary[HTTP &amp; Networking](/categories/http)

xujif/guzzle-json-rpc
=====================

json-rpc server and client base on guzzle,support async

1.0.4(9y ago)0418MITPHPPHP &gt;=5.4.0

Since Feb 9Pushed 9y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (5)Used By (0)

\#json-rpc base on guzzle a full json-rpc 2.0 [RFC](http://www.jsonrpc.org/specification) implementation

\###Usage ####Server

```
/*
 * in any http framworks
 */
$apiObject = new Api();
$server = new \Xujif\JsonRpc\Server($apiObject);
// return array
// please return to client with json
$ret = $server->handle();
header('Content-Type:application/json')
echo json_encode($ret);
```

\####Client

```
$client = new \Xujif\JsonRpc\Client('API_SERVER_URL');
$client->call('method',[1,2,3]);
// or
$client->method(1,2,3)
// or notification(no result send async)
$client->notify()->method(1,2,3)
// or batch call
$client->batch()->method(1,2,3)->method2(1,2)->exec();
// or batch notification
$client->batch()->notify()->method(1,2,3)->method2(1,2)->exec();
// or batch mixed notification and call
// if all batch call is notify it will send async
$client->batch()
       ->notify()
       ->method(1,2,3)
       ->notify(false)
       ->method2(1,2)
       ->exec();
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~27 days

Total

4

Last Release

3344d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1978609?v=4)[浊酒](/maintainers/xujif)[@xujif](https://github.com/xujif)

---

Top Contributors

[![xujif](https://avatars.githubusercontent.com/u/1978609?v=4)](https://github.com/xujif "xujif (9 commits)")

---

Tags

guzzle json rpc webservice

### Embed Badge

![Health badge](/badges/xujif-guzzle-json-rpc/health.svg)

```
[![Health](https://phpackages.com/badges/xujif-guzzle-json-rpc/health.svg)](https://phpackages.com/packages/xujif-guzzle-json-rpc)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[laravel/framework

The Laravel Framework.

34.8k532.1M19.5k](/packages/laravel-framework)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k34](/packages/neuron-core-neuron-ai)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6941.5M398](/packages/drupal-core-recommended)[roundcube/roundcubemail

The Roundcube Webmail suite

7.0k1.4k3](/packages/roundcube-roundcubemail)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)

PHPackages © 2026

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