PHPackages                             pudongping/hyperf-alarm-clock - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. pudongping/hyperf-alarm-clock

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

pudongping/hyperf-alarm-clock
=============================

A utility for measuring code execution time, detecting timeouts, and sending notifications.

3.0.0(1y ago)11.9k1MITPHPPHP &gt;=8.1

Since Aug 30Pushed 1y ago1 watchersCompare

[ Source](https://github.com/pudongping/hyperf-alarm-clock)[ Packagist](https://packagist.org/packages/pudongping/hyperf-alarm-clock)[ Docs](https://github.com/pudongping/hyperf-alarm-clock)[ RSS](/packages/pudongping-hyperf-alarm-clock/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (5)Versions (7)Used By (1)

hyperf-alarm-clock
==================

[](#hyperf-alarm-clock)

[![Latest Stable Version](https://camo.githubusercontent.com/18164d2f95711aabe4168f9c46495c171a6c311e04f8cde3130ba1f1a7bc34de/68747470733a2f2f706f7365722e707567782e6f72672f7075646f6e6770696e672f6879706572662d616c61726d2d636c6f636b2f762f737461626c652e737667)](https://packagist.org/packages/pudongping/hyperf-alarm-clock)[![Total Downloads](https://camo.githubusercontent.com/67efad0371701835db8115e3bef932092b7f5e4dfa9056a195ac8913ae209185/68747470733a2f2f706f7365722e707567782e6f72672f7075646f6e6770696e672f6879706572662d616c61726d2d636c6f636b2f646f776e6c6f6164732e737667)](https://packagist.org/packages/pudongping/hyperf-alarm-clock)[![Latest Unstable Version](https://camo.githubusercontent.com/09ca9ca3b0942ed9fe8c2e7c56626c1304670d2100e29e4e160eb6dcaba71267/68747470733a2f2f706f7365722e707567782e6f72672f7075646f6e6770696e672f6879706572662d616c61726d2d636c6f636b2f762f756e737461626c652e737667)](https://packagist.org/packages/pudongping/hyperf-alarm-clock)[![Packagist](https://camo.githubusercontent.com/8be212e86d97ddd785553b1ca3d8c381808772709e7e9a72da3ba3011f07d5ff/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7075646f6e6770696e672f6879706572662d616c61726d2d636c6f636b2e737667)](https://github.com/pudongping/hyperf-alarm-clock)[![License](https://camo.githubusercontent.com/e1d816d72589c0acb496053608848900982c434a60f9e4d392baacfaa6911270/68747470733a2f2f706f7365722e707567782e6f72672f7075646f6e6770696e672f6879706572662d616c61726d2d636c6f636b2f6c6963656e7365)](https://packagist.org/packages/pudongping/hyperf-alarm-clock)

计算代码执行时间，超时后并发送通知的小工具。

运行环境
----

[](#运行环境)

- php &gt;= 8.1
- composer
- hyperf ~3.1.0

安装
--

[](#安装)

```
composer require pudongping/hyperf-alarm-clock:^3.0 -vvv
```

分支或者标签
------

[](#分支或者标签)

### 分支

[](#分支)

- **2.2:** For hyperf 2.2
- **3.0:** For hyperf ~3.0
- **3.1:** For hyperf ~3.1

### 标签

[](#标签)

- **1.0.x:** For hyperf 2.2
- **2.0.x:** For hyperf 3.0
- **3.0.x:** For hyperf 3.1

配置
--

[](#配置)

### 发布配置文件

[](#发布配置文件)

在你自己的项目根目录下，执行以下命令，即可看到生成了 `config/autoload/hyperf_alarm_clock.php` 配置文件。

```
php bin/hyperf.php vendor:publish pudongping/hyperf-alarm-clock
```

### 修改配置

[](#修改配置)

请直接修改 `config/autoload/hyperf_alarm_clock.php` 配置文件成你自己所需要的配置即可。

使用
--

[](#使用)

请直接将 `\Pudongping\HyperfAlarmClock\AlarmClockMiddleware` 中间件添加到 `config/autoload/middlewares.php` 配置文件中即可。[关于中间件的配置，请参考官方文档](https://hyperf.wiki/3.0/#/zh-cn/middleware/middleware)

输出内容示例
------

[](#输出内容示例)

- 使用标准输出作为通知通道

[![stdout](./images/stdout.png)](./images/stdout.png)

- 使用日志文件作为通知通道

[![logging](./images/logging.png)](./images/logging.png)

- 使用飞书作为通知通道

[![feishu](./images/feishu.png)](./images/feishu.png)

License
-------

[](#license)

MIT, see [LICENSE file](LICENSE).

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance40

Moderate activity, may be stable

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~88 days

Recently: every ~110 days

Total

6

Last Release

542d ago

Major Versions

1.0.0 → 2.2.x-dev2023-08-30

2.0.0 → 3.0.x-dev2023-08-30

PHP version history (3 changes)1.0.0PHP &gt;=7.2

2.0.0PHP &gt;=8.0

3.0.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/4f2a48f55b677f6e681bc120f7896d864165c8b11924f5e4d1aa7c23ff7c4813?d=identicon)[pudongping](/maintainers/pudongping)

---

Top Contributors

[![pudongping](https://avatars.githubusercontent.com/u/55131195?v=4)](https://github.com/pudongping "pudongping (7 commits)")

---

Tags

phpnotificationshyperfcode execution time

### Embed Badge

![Health badge](/badges/pudongping-hyperf-alarm-clock/health.svg)

```
[![Health](https://phpackages.com/badges/pudongping-hyperf-alarm-clock/health.svg)](https://phpackages.com/packages/pudongping-hyperf-alarm-clock)
```

###  Alternatives

[hyperf/hyperf-skeleton

A coroutine framework that focuses on hyperspeed and flexible, specifically use for build microservices and middlewares.

301187.4k](/packages/hyperf-hyperf-skeleton)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
