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

ActiveLibrary[API Development](/categories/api)

majuca/json-rpc
===============

Simple Json-RPC client/server library that just works

v1.2.8(7y ago)012.9k↓34.6%MITPHPPHP &gt;=5.4

Since Nov 22Pushed 4y agoCompare

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

READMEChangelogDependencies (1)Versions (19)Used By (0)

JsonRPC PHP Client and Server
=============================

[](#jsonrpc-php-client-and-server)

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

Complete fork of `fguillot/JsonRPC` with latest changes.

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;= 5.4
- License: MIT

Author
------

[](#author)

Frédéric Guillot

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

[](#installation-with-composer)

For PHP &gt;= 5.4

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

For PHP 5.3 (last supported version):

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

Examples
--------

[](#examples)

### Server

[](#server)

Callback binding:

```
