PHPackages                             mrchen/thriftrpc - 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. mrchen/thriftrpc

ActiveProject[API Development](/categories/api)

mrchen/thriftrpc
================

thrift RPC for PHP

v1.0.3(9y ago)019MITPHP

Since May 26Pushed 9y ago1 watchersCompare

[ Source](https://github.com/cx851590535/thriftrpc)[ Packagist](https://packagist.org/packages/mrchen/thriftrpc)[ Docs](https://github.com/cx851590535/thriftrpc)[ RSS](/packages/mrchen-thriftrpc/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

composer包PhpRpc开发
=================

[](#composer包phprpc开发)

本扩展基于thriftRpc开发，过程中配合workMan使用，关于文件生成可参考[教程](http://www.workerman.net/workerman-thrift)。本人初步接触，技术小菜鸟一枚，以我理解的方式将其整合进laravel5.\*框架，欢迎各位大佬指导。

上文所提到的教程，我在使用过程中其实疑问蛮多的，以下先列出问题：

1. RPC（远程调用协议），如何实现的远程？
2. 哪些文件是公用的？哪些文件是客户端的，哪些文件是服务端的？

其实上述问题本质一样，如果解决了问题1那么问题2也会有答案了。经过本菜鸟多次尝试，大概答案如下：

在客户端的文件开始会配置thriftClient,其中包含了服务端的ip和端口号及其服务名称，在服务端的Applications\\ThriftRpc目录下的start.php文件会包含接收端口号和IP信息（框架优化可将配置取出） 客户端可以不需要生成的Applications\\ThriftRpc\\服务名\\服务名Handler.php 文件，同样服务端不需要client文件

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

3322d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9134470?v=4)[陈祥](/maintainers/cx851590535)[@cx851590535](https://github.com/cx851590535)

---

Top Contributors

[![cx851590535](https://avatars.githubusercontent.com/u/9134470?v=4)](https://github.com/cx851590535 "cx851590535 (12 commits)")

---

Tags

rpcthrift

### Embed Badge

![Health badge](/badges/mrchen-thriftrpc/health.svg)

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

###  Alternatives

[apache/thrift

Apache Thrift RPC system

10.9k2.1M45](/packages/apache-thrift)[grpc/grpc

gRPC library for PHP

508126.2M211](/packages/grpc-grpc)[sajya/server

Easy implementation of the JSON-RPC 2.0 server for the Laravel framework.

2392.0M6](/packages/sajya-server)[lstrojny/fxmlrpc

Fast and tiny XML/RPC client with bridges for various HTTP clients

1415.6M32](/packages/lstrojny-fxmlrpc)[packaged/thrift

Apache Thrift

159.1M33](/packages/packaged-thrift)[tivoka/tivoka

The universal JSON-RPC client/server library. JSON-RPC done right!

75161.8k3](/packages/tivoka-tivoka)

PHPackages © 2026

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