PHPackages                             mckay/flash - 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. mckay/flash

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

mckay/flash
===========

Handy flash messages.

v1.0.5(10y ago)45.3k1MITPHPPHP &gt;=5.3.0

Since Apr 8Pushed 10y ago8 watchersCompare

[ Source](https://github.com/mckay-software/flash.php)[ Packagist](https://packagist.org/packages/mckay/flash)[ RSS](/packages/mckay-flash/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (7)Used By (0)

Flash.php
=========

[](#flashphp)

*Tiny flash message library optimised for Bootstrap.*

Install
-------

[](#install)

Add it to your composer.json:

```
"mckay/flash": "^1.0.5",
```

then run `$ composer update`.

Usage
-----

[](#usage)

```
use \McKay\Flash;

Flash::info('Welcome home!');

if ($user->isNearACliff()) {
	Flash::warning('Careful, there');
}

$user->takeARandomStep();
Flash::debug('Uh oh?');

if ($user->heartbeat > 0) {
	Flash::success('Ok');
} else {
	Flash::error('Call an ambulance');
}
```

In your view
------------

[](#in-your-view)

```

```

License
-------

[](#license)

Copyright © McKay Software MIT License

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~63 days

Recently: every ~78 days

Total

6

Last Release

3744d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/109a1bee8bd5f99ff67961c617b8a634ada2edc162d439e44c0409382763d931?d=identicon)[passcod](/maintainers/passcod)

---

Top Contributors

[![antoniocambados-ipglobal](https://avatars.githubusercontent.com/u/195140756?v=4)](https://github.com/antoniocambados-ipglobal "antoniocambados-ipglobal (1 commits)")[![passcod](https://avatars.githubusercontent.com/u/155787?v=4)](https://github.com/passcod "passcod (1 commits)")

---

Tags

sessionflashmessages

### Embed Badge

![Health badge](/badges/mckay-flash/health.svg)

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

###  Alternatives

[plasticbrain/php-flash-messages

A modern take on PHP session-based flash messages

184229.6k8](/packages/plasticbrain-php-flash-messages)[coderello/laraflash

Advanced flash messages for Laravel.

15737.2k1](/packages/coderello-laraflash)[cartalyst/alerts

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

3064.2k](/packages/cartalyst-alerts)[ikkez/f3-flash

Add simple Flash Messages and Flash Keys to PHP Fat-Free Framework

1926.0k5](/packages/ikkez-f3-flash)[devmarketer/laraflash

A powerful and flexible flash notifications system. Improving over built-in Laravel Flash messaging functionality.

6310.3k1](/packages/devmarketer-laraflash)[dereuromark/cakephp-flash

A CakePHP plugin around powerful flash message handling.

1228.6k2](/packages/dereuromark-cakephp-flash)

PHPackages © 2026

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