PHPackages                             curtis18/yii2-swoft-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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. curtis18/yii2-swoft-rpc

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

curtis18/yii2-swoft-rpc
=======================

swoft json tcp rpc client yii2

1.0(6y ago)12Apache-2.0PHPPHP &gt;=7.1.0

Since Jul 26Pushed 6y agoCompare

[ Source](https://github.com/curtis18/yii2-swoft-rpc)[ Packagist](https://packagist.org/packages/curtis18/yii2-swoft-rpc)[ RSS](/packages/curtis18-yii2-swoft-rpc/feed)WikiDiscussions master Synced 2mo ago

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

Swoft JSON RCP Client (TCP) for Yii2
====================================

[](#swoft-json-rcp-client-tcp-for-yii2)

Install
-------

[](#install)

- composer command

```
composer require curtis18/yii2-swoft-rpc
```

Usage
-----

[](#usage)

- Please make sure Swoft RPC Server created before using this extension in Yii2.

```
use yii\Swoft\JsonRpc\Client;

public function actionRpcTest()
{
    $rpc = new Client("tcp://127.0.0.1:8001", \App\Rpc\Lib\TestInterface::class, "1.7");
    $result = $rpc->echoRpc("Hello World");
    echo $result;
}
```

Resources
---------

[](#resources)

- [Documentation of Swoft](https://swoft.org/docs)
- [Report Issues](https://github.com/curtis18/yii2-swoft-rpc/issues) and [Send Pull Requests](https://github.com/curtis18/yii2-swoft-rpc/pulls) in the [Main Swoft JSON RCP Client (TCP) for Yii2 Repository](https://github.com/curtis18/yii2-swoft-rpc)

LICENSE
-------

[](#license)

The Component is open-sourced software licensed under the [Apache license](LICENSE).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2483d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8e3d393353e612a87b8b6aa825cf1e75284008f7ade13887a61a0b9287d2733e?d=identicon)[curtis18](/maintainers/curtis18)

---

Top Contributors

[![curtis18](https://avatars.githubusercontent.com/u/6743839?v=4)](https://github.com/curtis18 "curtis18 (1 commits)")

---

Tags

phpjsonrpctcpswooleyii2swoft

### Embed Badge

![Health badge](/badges/curtis18-yii2-swoft-rpc/health.svg)

```
[![Health](https://phpackages.com/badges/curtis18-yii2-swoft-rpc/health.svg)](https://phpackages.com/packages/curtis18-yii2-swoft-rpc)
```

###  Alternatives

[datto/json-rpc

Fully unit-tested JSON-RPC 2.0 for PHP

1951.3M14](/packages/datto-json-rpc)[cranetm/yii2-json-rpc-2.0

JSON RPC 2.0 for Yii2 strict type validation of request and response data

2679.6k1](/packages/cranetm-yii2-json-rpc-20)[nizsheanez/yii2-json-rpc

A lightweight JsonRpc Server and Client for PHP

2034.0k](/packages/nizsheanez-yii2-json-rpc)[devgroup/yii2-jsoneditor

Yii2 jsoneditor widget

1199.6k1](/packages/devgroup-yii2-jsoneditor)

PHPackages © 2026

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