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

2179PHP

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 3w 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://avatars.githubusercontent.com/u/23162012?v=4)[Zed](/maintainers/zyz954489346)[@zyz954489346](https://github.com/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

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25025.5M80](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.2M6.5k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k20.0k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87930.4k113](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.3M84](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69122.6k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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