PHPackages                             raoptimus/yii2-jsonrpc2 - 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. [Framework](/categories/framework)
4. /
5. raoptimus/yii2-jsonrpc2

ActiveYii2-extension[Framework](/categories/framework)

raoptimus/yii2-jsonrpc2
=======================

Json-rpc2 protocol for Yii2 Framework

1.0.3(7y ago)3233BSD-3-ClausePHPPHP &gt;=7.1.0

Since Oct 5Pushed 7y ago1 watchersCompare

[ Source](https://github.com/raoptimus/yii2-jsonrpc2)[ Packagist](https://packagist.org/packages/raoptimus/yii2-jsonrpc2)[ RSS](/packages/raoptimus-yii2-jsonrpc2/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (6)Used By (0)

[![Stable Version](https://camo.githubusercontent.com/1bd93d2c53f2183ff233a3f147a556ebfc37bb266b8e7865d7958acab0f9bd44/68747470733a2f2f706f7365722e707567782e6f72672f72616f7074696d75732f796969322d6a736f6e727063322f762f737461626c65)](https://packagist.org/packages/raoptimus/yii2-jsonrpc2)[![Untable Version](https://camo.githubusercontent.com/2cef2ecb9b07c68f58f79772f88c468391885c84af63fcaf9c574d4d37998883/68747470733a2f2f706f7365722e707567782e6f72672f72616f7074696d75732f796969322d6a736f6e727063322f762f756e737461626c65)](https://packagist.org/packages/raoptimus/yii2-jsonrpc2)[![License](https://camo.githubusercontent.com/a38bae269dcd6d56f4939049e8959be7cada087fbbb536ec9dae23d3fe107e65/68747470733a2f2f706f7365722e707567782e6f72672f72616f7074696d75732f796969322d6a736f6e727063322f6c6963656e7365)](https://packagist.org/packages/raoptimus/yii2-jsonrpc2)[![Total Downloads](https://camo.githubusercontent.com/0a99e22846f4d1015004fd1853183cd058188bab6e642e7d08e90057bbbefd19/68747470733a2f2f706f7365722e707567782e6f72672f72616f7074696d75732f796969322d6a736f6e727063322f646f776e6c6f616473)](https://packagist.org/packages/raoptimus/yii2-jsonrpc2)[![Build Status](https://camo.githubusercontent.com/6d854edbd916d27d3d5827f929f448019275fa7329cab26c753257b418a49832/68747470733a2f2f7472617669732d63692e636f6d2f72616f7074696d75732f796969322d6a736f6e727063322e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/raoptimus/yii2-jsonrpc2)

yii2-jsonrpc2
=============

[](#yii2-jsonrpc2)

Json RPC client 1.0 and 2.0 versions for Yii2

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

[](#installation)

Install with composer:

```
composer require raoptimus/yii2-jsonrpc2
```

Usage samples
-------------

[](#usage-samples)

Configuration

```
return [
    //....
    'components' =>
        'jsonrpc' => [
            'class' => raoptimus\jsonrpc2\Connection::class,
            'hostname' => 'localhost',
            'port' => 8666,
        ],
];
```

```
return [
    //....
    'components' =>
        'jsonrpc' => [
            'class' => raoptimus\jsonrpc2\Connection::class,
            'unixSocket' => '/tmp/jsonrpc2.sock',
            'spec' => raoptimus\jsonrpc2\Connection::SPEC_2_0,
        ],
];
```

Use connection

```
$rpc = \Yii::$app->get('jsonrpc');
$method = "SomeMethodName";
$param = "SomeEnterParam";
$request = $rpc->createRequest($method, [$param]);
$rpc->sendRequest($request);
$result = $rpc->readResponse()->result;
//or
$result = $rpc->$method($param);
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~2 days

Total

4

Last Release

2768d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/37397bb5266ed1ff51c5122920ee84f4111131edd51b79ad07d4501c6d2cea85?d=identicon)[raoptimus](/maintainers/raoptimus)

---

Top Contributors

[![raoptimus](https://avatars.githubusercontent.com/u/1120269?v=4)](https://github.com/raoptimus "raoptimus (8 commits)")

---

Tags

json-rpc-clientjson-rpc2-clientjsonrpcjsonrpc2phpyii2yii2-extensionyii2-jsonrpcyii2-jsonrpc2phpyii2yii2-extensionyii 2yii2-jsonrpc2yii2 json rpc 2yii2 json rpc 2 unix socket

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/raoptimus-yii2-jsonrpc2/health.svg)

```
[![Health](https://phpackages.com/badges/raoptimus-yii2-jsonrpc2/health.svg)](https://phpackages.com/packages/raoptimus-yii2-jsonrpc2)
```

###  Alternatives

[luyadev/luya

LUYA is a scalable web framework and content management system with the goal to please developers, clients and users alike.

8086.9k2](/packages/luyadev-luya)[elisdn/yii2-composite-form

Nested forms base class for Yii2 Framework.

53211.8k8](/packages/elisdn-yii2-composite-form)

PHPackages © 2026

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