rwcoding / pscc
1.0.0-beta
2021-11-05 04:33 UTC
Requires
- ext-json: *
- filp/whoops: ^2.14
- illuminate/database: ^8.68
- illuminate/events: ^8.69
- illuminate/filesystem: ^8.68
- illuminate/support: ^8.69
- illuminate/translation: ^8.68
- illuminate/validation: ^8.68
- monolog/monolog: ^2.3
- symfony/var-dumper: ^5.3
Requires (Dev)
- phpbench/phpbench: ^1.1
- phpunit/phpunit: ^9.5
- swoole/ide-helper: @dev
This package is auto-updated.
Last update: 2022-08-05 06:22:32 UTC
README
测试样例 (examples)
配置
# 配置 pscc.ini, swoole是可选的 [swoole] host = 0.0.0.0 port = 9090 enable_coroutine = off worker_num = *2 task_worker_num = 2 max_request = 10000 max_connection = 100000 [db] host = 127.0.0.1 database = blog username = root password = root
Swoole 下运行
php swoole.php
内置 WebServer 环境运行
cd public
php -S 127.0.0.1:8080 web.php
控制台运行
php cli.php