PHPackages                             tirien/alert - 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. tirien/alert

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tirien/alert
============

PHP Application alert handling class.

1.1(10y ago)0153MITPHPPHP &gt;=5.3.3

Since Aug 10Pushed 8y ago1 watchersCompare

[ Source](https://github.com/mladenjanjetovic/php-alerts)[ Packagist](https://packagist.org/packages/tirien/alert)[ Docs](https://tirien.com/)[ RSS](/packages/tirien-alert/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

PHP Alerts
==========

[](#php-alerts)

Application alert handling class that easily sets the messages of any type, and dumps them with HTML markup if needed.

Use to set arbitrarily types of alerts:

```
Alert::set("success", "Successfully saved!");
Alert::set("error", ["Bad phone", "Bad address"]);

```

By sending the error type as first attribute, you can group messages within Alert object and get the HTML markup with appropriate CSS classes included.

Print block of alerts with HTML markup:

```
Alert::show();

```

Get all alerts as array:

```
Alert::get();

```

Clear all alerts:

```
Alert::clear();

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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 ~59 days

Total

2

Last Release

3874d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7408e911dea976df3c0f15a125191f9eea9b8902e537892ad5f6344fd4e6fa35?d=identicon)[tirien](/maintainers/tirien)

---

Top Contributors

[![MladenJanjetovic](https://avatars.githubusercontent.com/u/4288643?v=4)](https://github.com/MladenJanjetovic "MladenJanjetovic (21 commits)")

---

Tags

alertsmessages

### Embed Badge

![Health badge](/badges/tirien-alert/health.svg)

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

###  Alternatives

[prologue/alerts

Prologue Alerts is a package that handles global site messages.

3486.1M30](/packages/prologue-alerts)[plasticbrain/php-flash-messages

A modern take on PHP session-based flash messages

184229.6k8](/packages/plasticbrain-php-flash-messages)[tatter/alerts

Lightweight user alerts for CodeIgniter 4

4072.4k6](/packages/tatter-alerts)[cartalyst/alerts

Alerts allows you to easily pass alert messages to your Laravel views.

3064.2k](/packages/cartalyst-alerts)[coderello/laraflash

Advanced flash messages for Laravel.

15737.2k1](/packages/coderello-laraflash)[gerardojbaez/messenger

Messenger functionality for Laravel 5.2.

738.5k](/packages/gerardojbaez-messenger)

PHPackages © 2026

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