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

ActiveLibrary[API Development](/categories/api)

solution/json-rpc-bundle
========================

Wrapper for Zend2 Json Rpc Server

03.1k[1 issues](https://github.com/f1nder/SolutionJsonRpcBundle/issues)PHP

Since Jun 2Pushed 10y ago2 watchersCompare

[ Source](https://github.com/f1nder/SolutionJsonRpcBundle)[ Packagist](https://packagist.org/packages/solution/json-rpc-bundle)[ RSS](/packages/solution-json-rpc-bundle/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

SolutionJsonRpcBundle
=====================

[](#solutionjsonrpcbundle)

Symfony2 Bundle wrapper to [Zend JsonRpc Server](http://framework.zend.com/manual/1.10/en/zend.json.server.html)

Installation
------------

[](#installation)

Add `solution/json-rpc-bundle` to `composer.json`:

```
{
   "require": {
        "solution/json-rpc-bundle": "dev-master"
    }
}
```

Add `SolutionJsonRpcBundle` to your `AppKernel.php`:

```
    $bundles = array(
        ...
        new Solution\JsonRpcBundle\SolutionJsonRpcBundle($this),
    );
}
```

Configuration
-------------

[](#configuration)

Select bundles you want use json-rpc via annotations so that the bundle will pick them up, and add them to your dependency injection container:

```
#app/config/config.yml
solution_json_rpc:
    bundles: [ Bundle1, Bundle2 ]
```

Add route to your `routing.yml`:

```
mailer_api:
    resource: @SolutionJsonRpcBundle/Resources/config/routing.yml
    prefix: /api/json-rpc/
```

Usage
-----

[](#usage)

Class annotation:

```
use Solution\JsonRpcBundle\Annotation as Api;
/**
 * @Api\JsonRpcApi(service = "api", namespace="test-api")
 */
```

Method annotation:

```
    /**
     * @Api\JsonRpcMethod
     *
     * @param null $id
     * @return bool
     */
    public function getTemplate($id = null)
    {
        return [
            "id" => 83,
            "name" => "test"
        ];
    }
```

Post request example:

```
{"jsonrpc":"2.0","method":"test-api.getTemplate","params":[4],"id":"foo"}
```

Response example:

```
{"result":[{"id":83,"name":"test"}],"id":"foo","jsonrpc":"2.0"}
```

@todo

- README
- Add the ability to describe methods with auto gen SDM
- write functional test

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/2d7b50031b74da8cef36404f801496d1d07bccd1c7f7929f9a0c2cc6d9e12035?d=identicon)[f1nder](/maintainers/f1nder)

---

Top Contributors

[![f1nder](https://avatars.githubusercontent.com/u/498063?v=4)](https://github.com/f1nder "f1nder (6 commits)")

### Embed Badge

![Health badge](/badges/solution-json-rpc-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/solution-json-rpc-bundle/health.svg)](https://phpackages.com/packages/solution-json-rpc-bundle)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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