PHPackages                             thefunpower/rpc\_php - 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. thefunpower/rpc\_php

ActiveLibrary[API Development](/categories/api)

thefunpower/rpc\_php
====================

rpc\_php

v2.2.2(2y ago)01871Apache-2.0PHP

Since Jun 1Pushed 2y agoCompare

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

READMEChangelog (3)DependenciesVersions (5)Used By (1)

安装
==

[](#安装)

在composer.json中添加

```
"thefunpower/rpc_php": "dev-main"

```

curl超时
------

[](#curl超时)

```
yar.timeout = 6000

```

RPC
---

[](#rpc)

服务端

```
class ServerGetUser{
    public function getInfo($name = 'abc'){
        return ['welcome'=>$name,'token'=>rpc_token()];
    }
}
rpc_server("ServerGetUser");

```

客户端

```
$client = rpc_client("http://127.0.0.1:5000/rpc.php");
$info = $client->getInfo("test");
print_r($info);

```

### 开源协议

[](#开源协议)

[Apache License 2.0](LICENSE)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity47

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

4

Last Release

898d ago

Major Versions

v1.0.1 → v2.2.02023-06-08

### Community

Maintainers

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

---

Top Contributors

[![sunkangchina](https://avatars.githubusercontent.com/u/66815206?v=4)](https://github.com/sunkangchina "sunkangchina (2 commits)")

---

Tags

php

### Embed Badge

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

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

PHPackages © 2026

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