PHPackages                             nzphp/nzphp - 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. nzphp/nzphp

ActiveFramework[Framework](/categories/framework)

nzphp/nzphp
===========

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(9y ago)066MITPHP &gt;=5.3.7

Since Dec 14Compare

[ Source](https://github.com/evagle/nzphp)[ Packagist](https://packagist.org/packages/nzphp/nzphp)[ Docs](https://github.com/evagle/zphp)[ RSS](/packages/nzphp-nzphp/feed)WikiDiscussions Synced 2d ago

READMEChangelogDependenciesVersions (3)Used By (0)

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

\###开发者

- abing

\##特色

```
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

- 地址：

\##相关扩展

```
*生产环境推荐：
1) https://github.com/matyhtf/swoole  (高性能socket模块)
2）https://github.com/shenzhe/phpredis    (redis，用于cache,conn等)

*使用react做socket，需要：
1) 编译选项加上: --enable-pcntl --enable-sockets
2) http://pecl.php.net/package/libevent   (libevent库)
3) https://github.com/krakjoe/pthreads     (多线程支持，可选)

```

\##流程图 [![点击查看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

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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

3487d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1221461?v=4)[Brian Huang](/maintainers/evagle)[@evagle](https://github.com/evagle)

---

Tags

frameworkserverSocketmultiprogressThread

### Embed Badge

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

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

###  Alternatives

[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.

5751.0k](/packages/zphp-zphp)[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.0k221.3k37](/packages/hprose-hprose)[hprose/hprose-yii

Hprose Server for Yii 2

357.2k](/packages/hprose-hprose-yii)[atk4/mastercrud

Multi-level CRUD system component for ATK UI

109.7k](/packages/atk4-mastercrud)[sammaye/yii2-elephantio

A plugin for using Elephant IO with Yii2

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

PHPackages © 2026

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