PHPackages                             limingxinleo/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. limingxinleo/swoft-rpc

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

limingxinleo/swoft-rpc
======================

Swoft

1.0.1(7y ago)01.4k1MITPHPPHP &gt;=7.0

Since Sep 4Pushed 7y ago1 watchersCompare

[ Source](https://github.com/limingxinleo/swoft-rpc)[ Packagist](https://packagist.org/packages/limingxinleo/swoft-rpc)[ RSS](/packages/limingxinleo-swoft-rpc/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (5)Versions (3)Used By (1)

swoft-rpc
=========

[](#swoft-rpc)

[![Build Status](https://camo.githubusercontent.com/88c8b67cdae5755df5e114dd84f6b9964280146652535e6033e9a6603d65018b/68747470733a2f2f7472617669732d63692e6f72672f6c696d696e6778696e6c656f2f73776f66742d7270632e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/limingxinleo/swoft-rpc)

用于封装常用的Breaker和ServicePool

自定义的Breaker和ServicePool需要继承当前类库进行实现。

安装

```
composer require limingxinleo/swoft-rpc

```

基本配置 app.php

```
return [
    ...
    'service' => [
        'default' => [
            'name' => 'service',
            'uri' => [
                '127.0.0.1:8099',
                '127.0.0.1:8099',
            ],
            'minActive' => 8,
            'maxActive' => 8,
            'maxWait' => 8,
            'maxWaitTime' => 3,
            'maxIdleTime' => 60,
            'timeout' => 8,
            'useProvider' => false,
            'balancer' => 'random',
            'provider' => 'consul',
        ]
    ],
    'breaker' => [
        'default' => [
            'failCount' => 3,
            'successCount' => 3,
            'delayTime' => 500,
        ],
    ],
    'components' => [
        'custom' => [
            'Swoftx\\Rpc\\'
        ],
    ],
];

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

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

Every ~60 days

Total

2

Last Release

2746d ago

### Community

Maintainers

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

---

Top Contributors

[![limingxinleo](https://avatars.githubusercontent.com/u/16648551?v=4)](https://github.com/limingxinleo "limingxinleo (6 commits)")

---

Tags

phpmodeldbswooleswoft

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[swoft/db

swoft database component

24167.4k11](/packages/swoft-db)

PHPackages © 2026

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