guanhui07/webman-skeleton

高性能HTTP服务框架。

v1.2.1 2023-05-27 05:15 UTC

This package is auto-updated.

Last update: 2024-09-03 11:04:32 UTC


README

安装

composer create-project guanhui07/webman-skeleton
composer install

面向切面编程(aop)

https://github.com/hyperf/aop-integration

app/aspect/DebugAspect.php

命令行

命令行 https://www.workerman.net/plugin/1

php webman make:command test:command

php webman test:command

crontab

app/crontab/TestCrontab.php

config/crontab.php

app/process/Task.php 获取 配置执行

https://www.workerman.net/doc/webman/components/crontab.html

事件

配置 config/plugin/yzh52521/event/app.php

https://www.workerman.net/plugin/27

触发

event('test',[new TestEvent(['test'=>'event data'])]);

WebSocket网关

https://www.workerman.net/plugin/5

是否开启ws config/plugin/webman/gateway-worker/app.php

config/plugin/webman/gateway-worker/process.php