zxin / think-swoole
Swoole extend for thinkphp
v4.0.4
2021-07-08 14:16 UTC
Requires
- php: >=7.4
- ext-json: *
- ext-swoole: >=4.6
- nette/php-generator: ^3.2
- open-smf/connection-pool: ~1.0
- stechstudio/backoff: ^1.2
- swoole/ide-helper: ^4.3
- symfony/finder: ^4.3.2|^5.1
- topthink/framework: ^6.0
Requires (Dev)
- phpunit/phpunit: ^9.5
- symfony/var-dumper: ^4.3|^5.1
- topthink/think-queue: ^3.0
- topthink/think-tracing: ^1.0
- dev-zx/3.1
- dev-zx/3.0
- dev-zx/3.1-next
- 4.0.x-dev
- v4.0.4
- v4.0.3
- v4.0.2
- v4.0.1
- v4.0.0
- v3.1.3
- v3.1.2.5
- v3.1.2.4
- v3.1.2.1
- v3.1.2
- v3.1.1
- v3.1.0
- 3.0.x-dev
- 3.0.10.1
- v3.0.10
- v3.0.9.13
- v3.0.9.12
- v3.0.9.11
- v3.0.9.10
- v3.0.9.9
- v3.0.9.8
- v3.0.9.7
- v3.0.9.6
- v3.0.9.5
- v3.0.9.4
- v3.0.9.3
- v3.0.9.2
- v3.0.9.1
- v3.0.9
- v3.0.8
- v3.0.7
- v3.0.6
- v3.0.5
- v3.0.4
- v3.0.3
- v3.0.2
- v3.0.1
- v3.0.0
- v2.0.18
- v2.0.17
- v2.0.16
- v2.0.15
- v2.0.14
- v2.0.13
- v2.0.12
- v2.0.11
- v2.0.10
- v2.0.9
- v2.0.8
- v2.0.7
- v2.0.6
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- v1.0.0
- dev-zx/regress
- dev-patch-fw
- dev-master
This package is auto-updated.
Last update: 2024-11-21 22:56:14 UTC
README
安装
首先按照Swoole官网说明安装swoole扩展,然后使用
composer require topthink/think-swoole
安装swoole扩展。
使用方法
直接在命令行下启动HTTP服务端。
php think swoole
启动完成后,默认会在0.0.0.0:80启动一个HTTP Server,可以直接访问当前的应用。
swoole的相关参数可以在config/swoole.php
里面配置(具体参考配置文件内容)。
如果需要使用守护进程方式运行,可以配置
'options' => [
'daemonize' => true
]
支持的操作包括
php think swoole [start|stop|reload|restart]