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 2mo ago

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 54% 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

3294d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/220dfae0125fe27e4b2aa42ad75e1df047c167a7a8934f0ee9564f399932fb09?d=identicon)[xujif](/maintainers/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

[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[guzzlehttp/command

Provides the foundation for building command-based web service clients

11510.7M19](/packages/guzzlehttp-command)[akamai-open/edgegrid-client

Implements the Akamai {OPEN} EdgeGrid Authentication specified by https://developer.akamai.com/introduction/Client\_Auth.html

482.5M6](/packages/akamai-open-edgegrid-client)[muhammadhuzaifa/telescope-guzzle-watcher

Telescope Guzzle Watcher provide a custom watcher for intercepting http requests made via guzzlehttp/guzzle php library. The package uses the on\_stats request option for extracting the request/response data. The watcher intercept and log the request into the Laravel Telescope HTTP Client Watcher.

98239.8k1](/packages/muhammadhuzaifa-telescope-guzzle-watcher)[huaweicloud/huaweicloud-sdk-php

Huawei Cloud SDK for PHP

1829.2k2](/packages/huaweicloud-huaweicloud-sdk-php)[ory/hydra-client-php

Documentation for all of Ory Hydra's APIs.

1710.8k](/packages/ory-hydra-client-php)

PHPackages © 2026

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