Download the PHP package pudongping/hyperf-alarm-clock without Composer
On this page you can find all versions of the php package pudongping/hyperf-alarm-clock. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pudongping/hyperf-alarm-clock
More information about pudongping/hyperf-alarm-clock
Files in pudongping/hyperf-alarm-clock
Package hyperf-alarm-clock
Short Description A utility for measuring code execution time, detecting timeouts, and sending notifications.
License MIT
Homepage https://github.com/pudongping/hyperf-alarm-clock
Informations about the package hyperf-alarm-clock
hyperf-alarm-clock
[![Latest Stable Version](https://poser.pugx.org/pudongping/hyperf-alarm-clock/v/stable.svg)](https://packagist.org/packages/pudongping/hyperf-alarm-clock) [![Total Downloads](https://poser.pugx.org/pudongping/hyperf-alarm-clock/downloads.svg)](https://packagist.org/packages/pudongping/hyperf-alarm-clock) [![Latest Unstable Version](https://poser.pugx.org/pudongping/hyperf-alarm-clock/v/unstable.svg)](https://packagist.org/packages/pudongping/hyperf-alarm-clock) [![Packagist](https://img.shields.io/packagist/v/pudongping/hyperf-alarm-clock.svg)](https://github.com/pudongping/hyperf-alarm-clock) [![License](https://poser.pugx.org/pudongping/hyperf-alarm-clock/license)](https://packagist.org/packages/pudongping/hyperf-alarm-clock)
计算代码执行时间,超时后并发送通知的小工具。
运行环境
- php >= 8.0
- composer
- hyperf ~3.0.0
安装
分支或者标签
分支
- 2.2: For hyperf 2.2
- 3.0: For hyperf 3.0
标签
- 1.0.x: For hyperf 2.2
- 2.0.x: For hyperf 3.0
配置
发布配置文件
在你自己的项目根目录下,执行以下命令,即可看到生成了 config/autoload/hyperf_alarm_clock.php
配置文件。
修改配置
请直接修改 config/autoload/hyperf_alarm_clock.php
配置文件成你自己所需要的配置即可。
使用
请直接将 \Pudongping\HyperfAlarmClock\AlarmClockMiddleware
中间件添加到 config/autoload/middlewares.php
配置文件中即可。关于中间件的配置,请参考官方文档
输出内容示例
- 使用标准输出作为通知通道
- 使用日志文件作为通知通道
- 使用飞书作为通知通道
License
MIT, see LICENSE file.
All versions of hyperf-alarm-clock with dependencies
hyperf/http-server Version ~3.0.0
hyperf/logger Version ~3.0.0
hyperf/config Version ~3.0.0
hyperf/guzzle Version ~3.0.0