Download the PHP package workbunny/event-loop without Composer
On this page you can find all versions of the php package workbunny/event-loop. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download workbunny/event-loop
More information about workbunny/event-loop
Files in workbunny/event-loop
Download workbunny/event-loop
More information about workbunny/event-loop
Files in workbunny/event-loop
Vendor workbunny
Package event-loop
Short Description A high-performance event loop library for PHP
License MIT
Homepage https://github.com/workbunny
Package event-loop
Short Description A high-performance event loop library for PHP
License MIT
Homepage https://github.com/workbunny
Please rate this library. Is it a good library?
Informations about the package event-loop
workbunny/event-loop
🐇 A high-performance event loop library for PHP 🐇
简介
一个事件循环库,目的是为了构建高性能网络应用。
使用
注:本文档为 1.2.x 版本,旧版请点击 1.1.x 版本 跳转 注:swowloop还未完成单元测试,敬请等待
安装
创建loop
注册loop
- 创建 YourLoopClass 实现 LoopInterface
- 调用 Loop::register() 注册 YourLoopClass
创建定时器
-
Future 触发器
-
ReFuture 重复触发器
-
DelayReFuture 延迟的重复触发器
-
Delayer 延迟器
-
Timer 定时器
- DelayTimer 延迟的定时器
流事件
这里的流是指 PHP Streams
-
读取流
- 写入流
信号事件
用于接收系统的信号,比如kill等
启动/停止
-
启动
以下代码会持续阻塞,请放在程序最后一行
-
停止
以下代码不会阻塞等待
All versions of event-loop with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
The package workbunny/event-loop contains the following files
Loading the files please wait ....