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 2mo 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 14% 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

[stripe/stripe-php

Stripe PHP Library

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

A PHP wrapper for Twilio's API

1.6k92.9M271](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

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

PHP wrapper for the Meilisearch API

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

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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