Download the PHP package ysnow/laravel-workerman without Composer
On this page you can find all versions of the php package ysnow/laravel-workerman. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package laravel-workerman
Laravel-Workerman 这是一个用于在 Laravel 中集成 Workerman 的库。它提供了一个简单的方法来创建实时应用程序,如聊天应用程序、在线游戏、实时协作工具等。
## 安装 您可以使用 Composer 安装这个库。在您的 Laravel 项目根目录下,运行以下命令: ## 发布资源配置文件 ## 创建监听文件 app\Events\WorkerManEvent.php 回调函数参考 https://www.workerman.net/doc/workerman/worker/callbacks.html ~~~ send(json_encode(['code' => 200, 'data' => json_decode($message)])); } public static function onWorkerStart() { } public static function onConnect($client_id) { } public static function onWebSocketConnect($client_id, $data) { } public static function onClose($client_id) { } } ~~~ 您可以使用 Artisan 命令启动 Workerman 服务: ## 示例 ## 贡献 ## 版权和许可证 这个项目是根据 [MIT 许可证](LICENSE.md) 分发的。 ## 问题和反馈 如果您发现了任何问题,或者有任何建议或反馈,请在 GitHub 存储库中提出一个 issue。我们很乐意听到您的声音! ## 参考资料 - [Workerman 官方网站](http://www.workerman.net/) - [Workerman GitHub 存储库](https://github.com/walkor/Workerman)All versions of laravel-workerman with dependencies
PHP Build Version
Package Version
Requires
workerman/workerman Version
^4.1
The package ysnow/laravel-workerman contains the following files
Loading the files please wait ....