2017 © Pedro Peláez
 

framework nzphp

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

image

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.

  • Friday, August 18, 2017
  • by evagle
  • Repository
  • 2 Watchers
  • 0 Stars
  • 55 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

ZPHP

NZPHP继承自ZPHPhttps://github.com/shenzhe/zphp ZPHP是一个极轻的,定位于后置SOA服务的框架,可开发独立高效的长驻服务,并能适应多端的变化。, (*1)

开发者

  • abing binglianghuang@gmail.com

特色

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流程图, (*2)

约定

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

环境要求

PHP >= 5.4, (*3)

协议

MIT license, (*4)

The Versions

18/08 2017

dev-master

9999999-dev https://github.com/evagle/nzphp

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

  Sources   Download

MIT

The Requires

 

by abing

framework server thread progress socket multi

06/02 2017

dev-gc

dev-gc https://github.com/evagle/nzphp

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

  Sources   Download

MIT

The Requires

 

by abing

framework server thread progress socket multi

14/12 2016

1.0

1.0.0.0 https://github.com/evagle/zphp

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

  Sources   Download

MIT

The Requires

  • php >=5.3.7

 

by abing

framework server thread progress socket multi