PHPackages                             ze/laravel-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. [HTTP &amp; Networking](/categories/http)
4. /
5. ze/laravel-jsonrpc-client

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

ze/laravel-jsonrpc-client
=========================

rpc client base on json-rpc with http

2176↓100%PHP

Since May 12Pushed 3y ago3 watchersCompare

[ Source](https://github.com/Golden-Shanghai/laravel-jsonrpc-client)[ Packagist](https://packagist.org/packages/ze/laravel-jsonrpc-client)[ RSS](/packages/ze-laravel-jsonrpc-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

laravel JSON-RPC客户端(Http协议)
===========================

[](#laravel-json-rpc客户端http协议)

> 本项目是基于JSON-RPC的服务端端实现的rpc客户端
> server端见：

---

### 初始化

[](#初始化)

1.发布

```
php artisan vendor:publish --provider="Ze\JsonRPCClient\RPCClientProvider"
```

2.修改config/rpc.php中的配置，可参照vendor/ze/laravel-jsonrpc-client/config/rpc.php

3.封装了两个中间件供服务端路由调用，可参照下面的例子

```
// rpc.id 为ip白名单验证，支持*放行所有ip
// rpc.auth 为验签中间件，必须使用
Route::rpc('/v1/rpc', [\App\Http\Procedures\TestProcedure::class])
    ->middleware(['rpc.ip','rpc.auth']);
```

### 示例

[](#示例)

```
// *需先启动服务

// 注册rpc客户端
$rpc = \RPC::connect('example')->path('api/v1/endpoint');

// 单条请求
$rpc->request('DataSourceProcedure@handle',['name'=>'test']);

// 批量请求
$rpc->batchRequest([
    [
        'id'     =>  1,
        'method' => 'DataSourceProcedure@handle',
        'params' => ['name'=>'test'],
    ]
]);
```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 Bus Factor1

Top contributor holds 50% 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://www.gravatar.com/avatar/6347bd82fe503e6d208d8899cec05533667148d3f6659e91dbb82ea92dd2446e?d=identicon)[zyz954489346](/maintainers/zyz954489346)

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

---

Top Contributors

[![silverd](https://avatars.githubusercontent.com/u/1514608?v=4)](https://github.com/silverd "silverd (2 commits)")[![zyz954489346](https://avatars.githubusercontent.com/u/23162012?v=4)](https://github.com/zyz954489346 "zyz954489346 (2 commits)")

### Embed Badge

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

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

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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