PHPackages                             funnyfig/swoole\_jsonrpc - 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. funnyfig/swoole\_jsonrpc

ActiveLibrary[API Development](/categories/api)

funnyfig/swoole\_jsonrpc
========================

JSON-RPC 2.0 client/server implementation for swoole

1.0.4(5y ago)016MITPHPPHP &gt;=7.1

Since Sep 26Pushed 5y ago2 watchersCompare

[ Source](https://github.com/FunnyFig/swoole_jsonrpc)[ Packagist](https://packagist.org/packages/funnyfig/swoole_jsonrpc)[ RSS](/packages/funnyfig-swoole-jsonrpc/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

Json-Rpc
========

[](#json-rpc)

[![Build Status](https://camo.githubusercontent.com/7dea1e2c61ccf16d0315cb60432202c4433292d92dbcdf565bf9a39b6e1f3399/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6a6f686e73746576656e736f6e2f6a736f6e2d7270632e706e67)](http://travis-ci.org/johnstevenson/json-rpc)

A PHP implementation for JSON-RPC (v2). Contains client and server libraries to handle requests including **notification** and **batch**.

Contents
--------

[](#contents)

- [About](#About)
- [Installation](#Installation)
- [Usage](#Usage)
- [Example](#Example)
- [License](#License)

About
-----

[](#about)

JSON-RPC is a protocol that allows servers to talk to each other using json-encoded structures. It is described in its specification as:

> A light weight remote procedure call protocol. It is designed to be simple!

Full details at [jsonrpc.org](http://www.jsonrpc.org/). You may need to read this to get an overview of the json structures that are used, although the heavy lifting is abstracted away by this implementation. For example, calling a method on a remote server is as simple as:

```
