PHPackages                             zphp/zphp - 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. [Framework](/categories/framework)
4. /
5. zphp/zphp

ActiveFramework[Framework](/categories/framework)

zphp/zphp
=========

ZPHP is a light that is dedicated to gaming, social networking, web, mobile server-side frameworks. Providing high performance real-time communication solutions.

1.0.x-dev(10y ago)5771.0k194[3 issues](https://github.com/shenzhe/zphp/issues)[2 PRs](https://github.com/shenzhe/zphp/pulls)MITPHPPHP &gt;=5.3.7

Since Sep 7Pushed 7y ago93 watchersCompare

[ Source](https://github.com/shenzhe/zphp)[ Packagist](https://packagist.org/packages/zphp/zphp)[ Docs](https://github.com/shenzhe/zphp)[ RSS](/packages/zphp-zphp/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

ZPHP
----

[](#zphp)

ZPHP是一个极轻的的，定位于后置SOA服务的框架，可开发独立高效的长驻服务，并能适应多端的变化。

### 发起人

[](#发起人)

- shenzhe (泽泽，半桶水) /

### 维护者

[](#维护者)

- godsoul \[[www.osfans.org(](http://www.osfans.org())
- cooper
- yongchuan (charles) /
- ruanxianhuo

特色
--

[](#特色)

1. 性能强悍 (大部分api可以在10ms内处理完)
2. socket, http, rpc 完美融合，自由切换
3. 通信协议自由扩展
4. 可配置的自由的view层
5. 丰富的kv持久存储支持 (ttserver, redis, redis-storage)
6. 丰富的cache (apc, memcached, redis, xcache, yac)
7. 队列支持 (beanstalk, redis)
8. 实时排行榜支持 (redis)
9. 多进程支持 (pcntl, 类ph-fpm的进程管理 (处理一定的请求之后自动kill，然后master会fork一个新进程))
10. 多线程支持 (no swoole, need pthreads extension)
11. composer 安装

demo
----

[](#demo)

- 地址：

相关扩展
----

[](#相关扩展)

\*生产环境推荐：

1.  (高性能socket模块) 2） (redis，用于cache,conn等)

\*使用react做socket，需要：

1. 编译选项加上: --enable-pcntl --enable-sockets
2.  (libevent库)
3.  (多线程支持，可选)

流程图
---

[](#流程图)

[![点击查看zphp流程图](https://camo.githubusercontent.com/a6cd5d123f6bc0ffafaa510aa49b441466f68d7bda84cbf99129fc03f8e208de/68747470733a2f2f7261772e6769746875622e636f6d2f7368656e7a68652f7a7068702f6d61737465722f7a7068705f6a672e6a7067 "zphp流程图")](https://camo.githubusercontent.com/a6cd5d123f6bc0ffafaa510aa49b441466f68d7bda84cbf99129fc03f8e208de/68747470733a2f2f7261772e6769746875622e636f6d2f7368656e7a68652f7a7068702f6d61737465722f7a7068705f6a672e6a7067)

约定
--

[](#约定)

- config/example/base.php 里的配置项目是必需的。
- 当不同模块使用了相同的adapter(如:redis), 如用到不同的host或port,可配置\_prefix进行隔离
- cli模块执行 php 项目目录/webroot/main.php 配置目录名(如:default) 参数(格式：a=b&amp;c=d&amp;e=f)

环境要求
----

[](#环境要求)

PHP &gt;= 5.4

协议
--

[](#协议)

MIT license

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community31

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.2% 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

3898d ago

### Community

Maintainers

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

---

Top Contributors

[![shenzhe](https://avatars.githubusercontent.com/u/916634?v=4)](https://github.com/shenzhe "shenzhe (509 commits)")[![LinkedDestiny](https://avatars.githubusercontent.com/u/5689061?v=4)](https://github.com/LinkedDestiny "LinkedDestiny (15 commits)")[![myxiaoao](https://avatars.githubusercontent.com/u/1223134?v=4)](https://github.com/myxiaoao "myxiaoao (11 commits)")[![asdf20122012](https://avatars.githubusercontent.com/u/4898151?v=4)](https://github.com/asdf20122012 "asdf20122012 (6 commits)")[![yongchuan](https://avatars.githubusercontent.com/u/3829432?v=4)](https://github.com/yongchuan "yongchuan (4 commits)")[![wudi](https://avatars.githubusercontent.com/u/3753615?v=4)](https://github.com/wudi "wudi (2 commits)")[![micln](https://avatars.githubusercontent.com/u/4499674?v=4)](https://github.com/micln "micln (1 commits)")[![godsoul](https://avatars.githubusercontent.com/u/3104500?v=4)](https://github.com/godsoul "godsoul (1 commits)")[![betashepherd](https://avatars.githubusercontent.com/u/5636922?v=4)](https://github.com/betashepherd "betashepherd (1 commits)")[![caojiabin2012](https://avatars.githubusercontent.com/u/12596466?v=4)](https://github.com/caojiabin2012 "caojiabin2012 (1 commits)")[![evagle](https://avatars.githubusercontent.com/u/1221461?v=4)](https://github.com/evagle "evagle (1 commits)")

---

Tags

frameworkserverSocketmultiprogressThread

### Embed Badge

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

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

###  Alternatives

[hprose/hprose

It is a modern, lightweight, cross-language, cross-platform, object-oriented, high performance, remote dynamic communication middleware. It is not only easy to use, but powerful. You just need a little time to learn, then you can use it to easily construct cross language cross platform distributed application system.

2.1k215.3k37](/packages/hprose-hprose)[hprose/hprose-yii

Hprose Server for Yii 2

357.1k](/packages/hprose-hprose-yii)[sammaye/yii2-elephantio

A plugin for using Elephant IO with Yii2

118.4k](/packages/sammaye-yii2-elephantio)

PHPackages © 2026

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