PHPackages                             kba-team/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. kba-team/json-rpc

ActiveLibrary[API Development](/categories/api)

kba-team/json-rpc
=================

Simple JSON-RPC client/server library that just works

1.1.2(1y ago)03.4k↓43.2%[2 issues](https://github.com/the-kbA-team/json-rpc/issues)MITPHPPHP &gt;=7.4

Since Feb 7Pushed 1y agoCompare

[ Source](https://github.com/the-kbA-team/json-rpc)[ Packagist](https://packagist.org/packages/kba-team/json-rpc)[ Docs](https://github.com/the-kbA-team/json-rpc/)[ RSS](/packages/kba-team-json-rpc/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (8)Used By (0)

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

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

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

This is fork of `matasarei/JsonRPC` which in turn is a fork of `fguillot/JsonRPC`.

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
- Requirements: PHP &gt;= 7.4
- License: MIT

Author
------

[](#author)

Frédéric Guillot

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

[](#installation-with-composer)

For PHP &gt;= 7.4

```
composer require kba-team/json-rpc
```

Running Test Cases
------------------

[](#running-test-cases)

1. Clone the repo
2. `cd JsonRPC`
3. Run composer: `composer install`
4. Run tests: `vendor/bin/phpunit`

Examples
--------

[](#examples)

### Server

[](#server)

Callback binding:

```
