ruanjiajia / workerman-yii2
use some yii2 functions in workerman! example activerecord!
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 19
Watchers: 4
Forks: 4
Open Issues: 0
Type:project
Requires
- workerman/workerman: ^3.4
- yiisoft/yii2: 2.0.11.2
This package is not auto-updated.
Last update: 2025-01-05 05:53:48 UTC
README
对于熟悉使用workerman和yii2 ActiveRecod的人来说,在workerman中使用ActiveRecord是一个问题 这个项目主要解决了在workerman中使用yii2中的ActiveRecord的问题
同时,解决了在命令行下常驻进程mysql gone away的问题
config文件中包含了表结构代码
composer install; php start.php start;
Workerman[start.php] start in DEBUG mode ----------------------- WORKERMAN ----------------------------- Workerman version:3.4.1 PHP version:7.0.15 ------------------------ WORKERS ------------------------------- user worker listen processes status ruanjiajia demo_worker none 1 [OK] ---------------------------------------------------------------- Press Ctrl-C to quit. Start success. name is test and age is 5
workerman 主页 http://www.workerman.net/
yii2 主页 http://www.yiiframework.com/
yii2 ActiveRecord http://www.yiichina.com/doc/guide/2.0/db-active-record