PHPackages                             fguillot/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. [API Development](/categories/api)
4. /
5. fguillot/json-rpc

ActiveLibrary[API Development](/categories/api)

fguillot/json-rpc
=================

Simple JSON-RPC client/server library that just works

v1.4.0(3mo ago)25711.6k—3.6%19[1 PRs](https://github.com/matasarei/json-rpc/pulls)19MITPHPPHP &gt;=8.0CI passing

Since Nov 22Pushed 2mo ago3 watchersCompare

[ Source](https://github.com/matasarei/json-rpc)[ Packagist](https://packagist.org/packages/fguillot/json-rpc)[ Docs](https://github.com/matasarei/json-rpc)[ RSS](/packages/fguillot-json-rpc/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (2)Versions (24)Used By (19)

JSON-RPC PHP Client and Server
==============================

[](#json-rpc-php-client-and-server)

[![CI workflow](https://github.com/matasarei/json-rpc/actions/workflows/main.yml/badge.svg)](https://github.com/matasarei/json-rpc/actions/workflows/main.yml/badge.svg)

A simple JSON-RPC client/server that just works.

Features
--------

[](#features)

- JSON-RPC 2.0 only
- The server support batch requests and notifications
- Authentication and IP based client restrictions
- Custom Middleware
- Fully unit tested
- License: MIT

Contributors
------------

[](#contributors)

[Frédéric Guillot](https://github.com/fguillot) and many others:

[![Contributors](https://camo.githubusercontent.com/0e806b049b898b0a1d7c82fb15443b4d73803a7b910d6df22b52fd6f6c2622b7/68747470733a2f2f636f6e747269622e726f636b732f696d6167653f7265706f3d6d61746173617265692f6a736f6e2d727063)](https://camo.githubusercontent.com/0e806b049b898b0a1d7c82fb15443b4d73803a7b910d6df22b52fd6f6c2622b7/68747470733a2f2f636f6e747269622e726f636b732f696d6167653f7265706f3d6d61746173617265692f6a736f6e2d727063)

Installation with Composer
--------------------------

[](#installation-with-composer)

```
composer require fguillot/json-rpc
```

Examples
--------

[](#examples)

### Symfony

[](#symfony)

-

### Server

[](#server)

Callback binding:

```
