{"id":15287268,"url":"https://github.com/bankiru/jsonrpc-server-bundle","last_synced_at":"2025-04-13T05:08:41.746Z","repository":{"id":62491542,"uuid":"56494738","full_name":"bankiru/jsonrpc-server-bundle","owner":"bankiru","description":"JSON-RPC server symfony bundle","archived":false,"fork":false,"pushed_at":"2022-11-08T05:04:25.000Z","size":84,"stargazers_count":1,"open_issues_count":4,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-26T22:01:34.272Z","etag":null,"topics":["api","api-server","bundle","json-rpc","json-rpc-api","json-rpc2","rpc","server","symfony"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bankiru.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-18T09:27:36.000Z","updated_at":"2023-11-22T20:12:59.000Z","dependencies_parsed_at":"2023-01-21T06:01:55.055Z","dependency_job_id":null,"html_url":"https://github.com/bankiru/jsonrpc-server-bundle","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bankiru%2Fjsonrpc-server-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bankiru%2Fjsonrpc-server-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bankiru%2Fjsonrpc-server-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bankiru%2Fjsonrpc-server-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bankiru","download_url":"https://codeload.github.com/bankiru/jsonrpc-server-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248448064,"owners_count":21105229,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","api-server","bundle","json-rpc","json-rpc-api","json-rpc2","rpc","server","symfony"],"created_at":"2024-09-30T15:27:09.692Z","updated_at":"2025-04-13T05:08:41.721Z","avatar_url":"https://github.com/bankiru.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Latest Stable Version](https://poser.pugx.org/bankiru/jsonrpc-server-bundle/v/stable)](https://packagist.org/packages/bankiru/jsonrpc-server-bundle) \n[![Total Downloads](https://poser.pugx.org/bankiru/jsonrpc-server-bundle/downloads)](https://packagist.org/packages/bankiru/jsonrpc-server-bundle) \n[![Latest Unstable Version](https://poser.pugx.org/bankiru/jsonrpc-server-bundle/v/unstable)](https://packagist.org/packages/bankiru/jsonrpc-server-bundle) \n[![License](https://poser.pugx.org/bankiru/jsonrpc-server-bundle/license)](https://packagist.org/packages/bankiru/jsonrpc-server-bundle)\n\n[![Build Status](https://travis-ci.org/bankiru/jsonrpc-server-bundle.svg)](https://travis-ci.org/bankiru/jsonrpc-server-bundle)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/bankiru/jsonrpc-server-bundle/badges/quality-score.png)](https://scrutinizer-ci.com/g/bankiru/jsonrpc-server-bundle/)\n[![Code Coverage](https://scrutinizer-ci.com/g/bankiru/jsonrpc-server-bundle/badges/coverage.png)](https://scrutinizer-ci.com/g/bankiru/jsonrpc-server-bundle/)\n[![SensioLabsInsight](https://insight.sensiolabs.com/projects/8b87b0a7-c8f9-4d7b-9b91-1e4e762a686f/mini.png)](https://insight.sensiolabs.com/projects/8b87b0a7-c8f9-4d7b-9b91-1e4e762a686f)\n\n# JSON-RPC Server bundle\n\nThis bundle provides JSON-RPC 2.0 server ontop of the `bankiru/rpc-server-bundle` library.\n\n\n## Serialization\n\nThis bundle uses `rpc.view` event in order to serialize response if request\nwas instance of `JsonRpcRequestInterface` and the response is not a \n`JsonRpcResponseInterface` object. You can bypass the serialization process \nwith sending pre-created response object or implementing your own view listener\n\n### Context\n\nThis library utilizes [JMS Serializer Bundle](https://github.com/schmittjoh/JMSSerializerBundle) \nto automatically serialize non-JSON-RPC controller response to serialized view. \nYou can specify the serialization context at the routing level. Also you \ncould disable default context usage with `with_default_context: false`\n\n## Exception handling\n\nAny unhandled exception from the controller would be automatically \nconverted to the proper JSON-RPC failure response with INTERNAL_ERROR (-32603) code.\nIf you want do display other error you could extend `JsonRpcException` class or \nconfigure it manually like following:\n\n```php\n\n$exception = new JsonRpcException();\n$execption-\u003esetJsonRpcError(\n    new JsonRpcError(\n        JsonRpcError::METHOD_NOT_FOUND,\n        'Invalid method',\n        (object)['debug_data' =\u003e 'some debug data']\n    )\n);\n\n```\n\n## Specification\n\nRefer to official JSON-RPC 2.0 specification at  http://www.jsonrpc.org/specification\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbankiru%2Fjsonrpc-server-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbankiru%2Fjsonrpc-server-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbankiru%2Fjsonrpc-server-bundle/lists"}