PHPackages                             slava-basko/symphony-json-rpc-server - 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. slava-basko/symphony-json-rpc-server

ActiveLibrary[API Development](/categories/api)

slava-basko/symphony-json-rpc-server
====================================

Simple JsonRpc server for symfony

07PHP

Since Feb 2Pushed 9y ago1 watchersCompare

[ Source](https://github.com/slava-basko/symphony-json-rpc-server)[ Packagist](https://packagist.org/packages/slava-basko/symphony-json-rpc-server)[ RSS](/packages/slava-basko-symphony-json-rpc-server/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Simple JsonRpc Server for Symfony
=================================

[](#simple-jsonrpc-server-for-symfony)

Install
-------

[](#install)

Install via composer and add to kernel.

```
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = [
            ...
            new JsonRpcServerBundle\JsonRpcBundle(),
        ];
        return $bundles;
    }
    ...
```

Add this to your routing.yml (or xlm, etc.).

```
json_rpc_server:
    path: /api
    defaults:  { _controller: JsonRpcBundle:Server:process }

```

**Done!**

Usage
-----

[](#usage)

Just mark your service with "rpc.service" tag.

```
rpc_ping:
    class: RpcService\PaymentService
    tags:
        - { name: rpc.service }
```

Advanced Configuration
----------------------

[](#advanced-configuration)

You can use server as a service. Example:

```
class DefaultController extends Controller
{
    /**
     * @Route("/", name="homepage")
     * @param Request $request
     * @return JsonResponse
     */
    public function indexAction(Request $request)
    {
        // Some Logic. Auth, pre-actions, etc.

        $rpcServer = $this->get('rpc_server');
        if ($request->isMethod('get')) {
            return new JsonResponse($rpcServer->getServiceMap()->toArray());
        }
        return new JsonResponse($rpcServer->handle()->toJson(), 200, [], true);
    }
}
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

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/6a8e37b4c52b1cfe4f5d64f420d21875ebdeb53954d6859d6d663038b95ef3cc?d=identicon)[slava-basko](/maintainers/slava-basko)

---

Top Contributors

[![slava-basko](https://avatars.githubusercontent.com/u/4376953?v=4)](https://github.com/slava-basko "slava-basko (1 commits)")

### Embed Badge

![Health badge](/badges/slava-basko-symphony-json-rpc-server/health.svg)

```
[![Health](https://phpackages.com/badges/slava-basko-symphony-json-rpc-server/health.svg)](https://phpackages.com/packages/slava-basko-symphony-json-rpc-server)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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