nhzex/tp-swoole

This package is abandoned and no longer maintained. The author suggests using the topthink/think-swoole package instead.

v2.1.2 2019-11-03 12:53 UTC

This package is auto-updated.

Last update: 2020-06-12 15:31:23 UTC


README

用于 Thinkphp6.0 的 Swoole 扩展

环境需求

  • php >= 7.2
  • swoole >= 4.4.6

安装

composer require nhzex/tp-swoole

启动

php think server

配置文件

  • 定义插件:\HZEX\TpSwoole\Contract\InteractsWithWorker
  • 定义事件监听:\unzxin\zswCore\Contract\EventSubscribeInterface
  • 定义进程:\unzxin\zswCore\Process\BaseSubProcess
  • 定义任务实现:\HZEX\TpSwoole\Task\TaskInterface

代码引用