PHPackages                             bankiru/jsonrpc-server-bundle - 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. bankiru/jsonrpc-server-bundle

AbandonedSymfony-bundle[API Development](/categories/api)

bankiru/jsonrpc-server-bundle
=============================

JSON-RPC server symfony bundle

1.1.3(9y ago)117.0k4[2 issues](https://github.com/bankiru/jsonrpc-server-bundle/issues)[2 PRs](https://github.com/bankiru/jsonrpc-server-bundle/pulls)MITPHPPHP ~5.5 || ~7.0

Since Apr 18Pushed 3y ago3 watchersCompare

[ Source](https://github.com/bankiru/jsonrpc-server-bundle)[ Packagist](https://packagist.org/packages/bankiru/jsonrpc-server-bundle)[ RSS](/packages/bankiru-jsonrpc-server-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (4)Dependencies (9)Versions (9)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/96fe880bbf9ab7d03ab9d57a800f5dd156e006f4bb2d69e2e1e526b80f532728/68747470733a2f2f706f7365722e707567782e6f72672f62616e6b6972752f6a736f6e7270632d7365727665722d62756e646c652f762f737461626c65)](https://packagist.org/packages/bankiru/jsonrpc-server-bundle)[![Total Downloads](https://camo.githubusercontent.com/6bf7fd800048f0e61bd3ea4fcbf27aaf2f2bf3bf3e0e41aa3e2610c649798b74/68747470733a2f2f706f7365722e707567782e6f72672f62616e6b6972752f6a736f6e7270632d7365727665722d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/bankiru/jsonrpc-server-bundle)[![Latest Unstable Version](https://camo.githubusercontent.com/f88bd49f6cad1d9fd03e022984f459e8c9ee6c593d4a3f37895becb20fc73d9b/68747470733a2f2f706f7365722e707567782e6f72672f62616e6b6972752f6a736f6e7270632d7365727665722d62756e646c652f762f756e737461626c65)](https://packagist.org/packages/bankiru/jsonrpc-server-bundle)[![License](https://camo.githubusercontent.com/4963936890640bfeeeccc38c8576bb904a414ea0e8c2e1f343a287cc078bcce2/68747470733a2f2f706f7365722e707567782e6f72672f62616e6b6972752f6a736f6e7270632d7365727665722d62756e646c652f6c6963656e7365)](https://packagist.org/packages/bankiru/jsonrpc-server-bundle)

[![Build Status](https://camo.githubusercontent.com/945e28b9ed40508c7278989af132d3254cebdcaa880cdebf3f998ed3f908a4aa/68747470733a2f2f7472617669732d63692e6f72672f62616e6b6972752f6a736f6e7270632d7365727665722d62756e646c652e737667)](https://travis-ci.org/bankiru/jsonrpc-server-bundle)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/de339a57a95858c3e7336605288b6fa691087686f607303ee31b4d1445d086fe/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f62616e6b6972752f6a736f6e7270632d7365727665722d62756e646c652f6261646765732f7175616c6974792d73636f72652e706e67)](https://scrutinizer-ci.com/g/bankiru/jsonrpc-server-bundle/)[![Code Coverage](https://camo.githubusercontent.com/0965bd95897df7ea8c0b9315c9aa1380e526e79bec3dbe007001c15d5c4a4bcc/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f62616e6b6972752f6a736f6e7270632d7365727665722d62756e646c652f6261646765732f636f7665726167652e706e67)](https://scrutinizer-ci.com/g/bankiru/jsonrpc-server-bundle/)[![SensioLabsInsight](https://camo.githubusercontent.com/3af0c6f87693af555d8fd99eef1d7e56054048ab355b0da64a07f4fe998594f6/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f38623837623061372d633866392d346437622d396239312d3165346537363261363836662f6d696e692e706e67)](https://insight.sensiolabs.com/projects/8b87b0a7-c8f9-4d7b-9b91-1e4e762a686f)

JSON-RPC Server bundle
======================

[](#json-rpc-server-bundle)

This bundle provides JSON-RPC 2.0 server ontop of the `bankiru/rpc-server-bundle` library.

Serialization
-------------

[](#serialization)

This bundle uses `rpc.view` event in order to serialize response if request was instance of `JsonRpcRequestInterface` and the response is not a `JsonRpcResponseInterface` object. You can bypass the serialization process with sending pre-created response object or implementing your own view listener

### Context

[](#context)

This library utilizes [JMS Serializer Bundle](https://github.com/schmittjoh/JMSSerializerBundle)to automatically serialize non-JSON-RPC controller response to serialized view. You can specify the serialization context at the routing level. Also you could disable default context usage with `with_default_context: false`

Exception handling
------------------

[](#exception-handling)

Any unhandled exception from the controller would be automatically converted to the proper JSON-RPC failure response with INTERNAL\_ERROR (-32603) code. If you want do display other error you could extend `JsonRpcException` class or configure it manually like following:

```
$exception = new JsonRpcException();
$execption->setJsonRpcError(
    new JsonRpcError(
        JsonRpcError::METHOD_NOT_FOUND,
        'Invalid method',
        (object)['debug_data' => 'some debug data']
    )
);
```

Specification
-------------

[](#specification)

Refer to official JSON-RPC 2.0 specification at

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 85.7% 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.

###  Release Activity

Cadence

Every ~46 days

Total

5

Last Release

3494d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ed906771163ff68cfb365bdd3b8278a3ce1b464f94051ff7ab50c03a30110efe?d=identicon)[scaytrase](/maintainers/scaytrase)

---

Top Contributors

[![scaytrase](https://avatars.githubusercontent.com/u/6578413?v=4)](https://github.com/scaytrase "scaytrase (6 commits)")[![hanovruslan](https://avatars.githubusercontent.com/u/1153520?v=4)](https://github.com/hanovruslan "hanovruslan (1 commits)")

---

Tags

apiapi-serverbundlejson-rpcjson-rpc-apijson-rpc2rpcserversymfony

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bankiru-jsonrpc-server-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/bankiru-jsonrpc-server-bundle/health.svg)](https://phpackages.com/packages/bankiru-jsonrpc-server-bundle)
```

###  Alternatives

[worksome/graphlint

A static analysis tool for GraphQL

13189.4k](/packages/worksome-graphlint)

PHPackages © 2026

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