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
Requires
- php: ~7.2.20 || ~7.3.8
- ext-curl: *
- ext-json: *
- ext-pcntl: *
- ext-pdo: *
- ext-sockets: *
- ext-swoole: ~4.4
- monolog/monolog: ^2.0
- nhzex/n-helper: ^1.1.5
- nhzex/zsw-core: ^1.2
- open-smf/connection-pool: ~1.0
- psr/log: ^1.1
- symfony/finder: ^4.3
- symfony/var-dumper: ^4.3
- topthink/framework: ~6.0.0
- topthink/think-orm: ~2.0.27
Requires (Dev)
- phpunit/phpunit: ^8
- swoft/swoole-ide-helper: ~4.4.0
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