PHPackages                             horde/alarm - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. horde/alarm

ActiveHorde-library[Utility &amp; Helpers](/categories/utility)

horde/alarm
===========

Alarm library

v3.0.0alpha6(2mo ago)12.0k—5%22LGPL-2.1-onlyPHPPHP ^7.4 || ^8

Since Mar 5Pushed 1mo ago5 watchersCompare

[ Source](https://github.com/horde/Alarm)[ Packagist](https://packagist.org/packages/horde/alarm)[ Docs](https://www.horde.org/libraries/Horde_Alarm)[ RSS](/packages/horde-alarm/feed)WikiDiscussions FRAMEWORK\_6\_0 Synced 1mo ago

READMEChangelog (2)Dependencies (29)Versions (22)Used By (2)

Horde Alarm
===========

[](#horde-alarm)

Modern alarm/notification system for PHP 8.1+.

Usage
-----

[](#usage)

```
use Horde\Alarm\AlarmConfig;
use Horde\Alarm\AlarmManager;
use Horde\Alarm\SqlStorage;
use Horde\Alarm\MailHandler;
use Horde\Alarm\NotificationMethod;

// Storage backend
$storage = new SqlStorage($db);
$storage->set(new AlarmConfig(
    id: 'meeting',
    user: 'john@example.com',
    start: new Horde_Date('2026-04-01 14:00'),
    methods: [NotificationMethod::Mail],
    title: 'Team Meeting'
));

// Alarm manager with handlers
$manager = new AlarmManager($storage);
$manager->addHandler(new MailHandler($identityFactory, $transport, $storage));
$manager->notify('john@example.com');
```

Features
--------

[](#features)

- **Type-safe:** Full PHP 8.1 strict types, enums, readonly properties
- **Modern:** PSR-4 namespace, constructor promotion, value objects
- **Flexible:** Multiple storage backends (memory, SQL) and notification methods
- **Tested:** 142 tests, 217 assertions, full PHPUnit 11+ compatibility

Install
-------

[](#install)

```
composer require horde/alarm
```

Documentation
-------------

[](#documentation)

- `doc/ALERTS.md` - Alarm vs Notification vs Log subsystems
- `doc/TESTING.md` - Test organization and running tests
- `doc/INTEGRATIONTEST.md` - Running integration tests
- `doc/UPGRADING.md` - Migration guide from lib/ 2.x PSR-0 to src/ 3.0 PSR-4

License
-------

[](#license)

LGPL-2.1-only

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance89

Actively maintained with recent releases

Popularity25

Limited adoption so far

Community26

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 73.5% 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 ~297 days

Recently: every ~461 days

Total

17

Last Release

65d ago

Major Versions

2.2.10 → 3.0.0alpha22021-02-24

PHP version history (6 changes)2.0.5PHP &gt;=5.3.0

2.2.1PHP &gt;=5.3.0,&lt;=6.0.0alpha1

2.2.6PHP &gt;=5.3.0,&lt;=8.0.0alpha1

2.2.9PHP ^5.3 || ^7

3.0.0alpha2PHP ^7

v3.0.0alpha4PHP ^7.4 || ^8

### Community

Maintainers

![](https://www.gravatar.com/avatar/c943a083635c28520599075eaea7ede2d743b7697b76e84d6bdc37e52cc8249b?d=identicon)[yunosh](/maintainers/yunosh)

![](https://www.gravatar.com/avatar/c931cd02664859360478593450d6c473a05bb12b209dfacfc534cd13257cc7ef?d=identicon)[ralflang](/maintainers/ralflang)

![](https://www.gravatar.com/avatar/e4f6c6771993db2ed500959b42353f6cf6a2ca0406d9617f7ae680f4504faa4a?d=identicon)[horde](/maintainers/horde)

![](https://www.gravatar.com/avatar/a7767adb66b45f2f05bcd44d49bc4e67efacd9ce05b161ce2d481d5dd6af025c?d=identicon)[mrubinsk](/maintainers/mrubinsk)

---

Top Contributors

[![yunosh](https://avatars.githubusercontent.com/u/379318?v=4)](https://github.com/yunosh "yunosh (310 commits)")[![slusarz](https://avatars.githubusercontent.com/u/381003?v=4)](https://github.com/slusarz "slusarz (36 commits)")[![mrubinsk](https://avatars.githubusercontent.com/u/66822?v=4)](https://github.com/mrubinsk "mrubinsk (35 commits)")[![ralflang](https://avatars.githubusercontent.com/u/646976?v=4)](https://github.com/ralflang "ralflang (32 commits)")[![wrobel](https://avatars.githubusercontent.com/u/10232?v=4)](https://github.com/wrobel "wrobel (4 commits)")[![renan](https://avatars.githubusercontent.com/u/28046?v=4)](https://github.com/renan "renan (2 commits)")[![thomasjfox](https://avatars.githubusercontent.com/u/1146758?v=4)](https://github.com/thomasjfox "thomasjfox (2 commits)")[![TDannhauer](https://avatars.githubusercontent.com/u/6716033?v=4)](https://github.com/TDannhauer "TDannhauer (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/horde-alarm/health.svg)

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

###  Alternatives

[horde/horde

Horde base application

581.7k34](/packages/horde-horde)

PHPackages © 2026

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