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

ActiveLibrary[API Development](/categories/api)

ellinaut/json-rpc
=================

Simple JSON-RPC implementation

01PHP

Since Jul 19Pushed 10mo agoCompare

[ Source](https://github.com/Ellinaut/PHP-JSON-RPC)[ Packagist](https://packagist.org/packages/ellinaut/json-rpc)[ RSS](/packages/ellinaut-json-rpc/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

JSON-RPC 2.0 Implementation for PHP
===================================

[](#json-rpc-20-implementation-for-php)

Features
--------

[](#features)

- [JSON-RPC 2.0 specification](https://www.jsonrpc.org/specification) compliant
- Support for single requests, batch requests and notifications
- **Server implementation** with PSR-11 container integration
- **Client implementation** with pluggable transport layer
- Clean exception-based error handling
- Immutable value objects for requests, responses, and errors

Requirements
------------

[](#requirements)

- PHP 8.4 or higher
- Composer
- PSR-11 compatible container (e.g., PHP-DI, Symfony DependencyInjection)

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

[](#installation)

```
composer req ellinaut/json-rpc
```

Quick Start
-----------

[](#quick-start)

Server Usage
------------

[](#server-usage)

### 1. Implement a Remote Procedure

[](#1-implement-a-remote-procedure)

```
