PHPackages                             switon/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. [Queues &amp; Workers](/categories/queues)
4. /
5. switon/rpc

ActiveLibrary[Queues &amp; Workers](/categories/queues)

switon/rpc
==========

Queue-based request-reply RPC for Switon Framework

v1.0.0(1mo ago)00MITPHPPHP &gt;=8.3CI passing

Since May 10Pushed 1mo agoCompare

[ Source](https://github.com/switon-php/rpc)[ Packagist](https://packagist.org/packages/switon/rpc)[ Docs](https://github.com/switon-php/rpc)[ RSS](/packages/switon-rpc/feed)WikiDiscussions main Synced 1w ago

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

Switon RPC Package
==================

[](#switon-rpc-package)

Queue-based request-reply RPC for Switon Framework.

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

[](#installation)

```
composer require switon/rpc
```

**Requirements:** PHP 8.3+

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

[](#quick-start)

```
use Switon\Core\Attribute\Autowired;
use Switon\Rpc\RpcInterface;

class UserService
{
    #[Autowired] protected RpcInterface $rpc;

    public function profile(int $userId): array
    {
        return $this->rpc->call(UserProfileService::class . '::profile', [$userId], 3);
    }
}

class UserProfileService
{
    public function profile(int $userId): array
    {
        return ['id' => $userId, 'name' => 'mark'];
    }
}
```

Docs:

License
-------

[](#license)

MIT.

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance94

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

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

31d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dc0f20ad15b0ae9fbf9c6e2cd3008692b0c88a877ec8d3e0119211314bf86fc8?d=identicon)[switon](/maintainers/switon)

---

Top Contributors

[![switon-php](https://avatars.githubusercontent.com/u/247358032?v=4)](https://github.com/switon-php "switon-php (5 commits)")

---

Tags

messagingqueuerpcswitonrpcqueuemessagingswiton

### Embed Badge

![Health badge](/badges/switon-rpc/health.svg)

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

###  Alternatives

[queue-interop/queue-interop

Promoting the interoperability of MQs objects. Based on Java JMS

48131.3M95](/packages/queue-interop-queue-interop)[bunny/bunny

Performant pure-PHP AMQP (RabbitMQ) non-blocking ReactPHP library

7526.7M41](/packages/bunny-bunny)[enqueue/enqueue-bundle

Message Queue Bundle

27415.9M41](/packages/enqueue-enqueue-bundle)[enqueue/enqueue

Message Queue Library

19020.5M62](/packages/enqueue-enqueue)[enqueue/amqp-tools

Message Queue Amqp Tools

14621.6M12](/packages/enqueue-amqp-tools)[enqueue/amqp-lib

Message Queue Amqp Transport

1078.8M69](/packages/enqueue-amqp-lib)

PHPackages © 2026

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