PHPackages                             pmn834/flashmessage - 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. pmn834/flashmessage

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

pmn834/flashmessage
===================

Flashmessage for Anax MVC

v3.0(11y ago)017MITPHPPHP &gt;=5.4

Since Apr 28Pushed 11y ago1 watchersCompare

[ Source](https://github.com/pmn834/CFlashmessage)[ Packagist](https://packagist.org/packages/pmn834/flashmessage)[ Docs](http://dbwebb.se)[ RSS](/packages/pmn834-flashmessage/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

CFlashmessage
=============

[](#cflashmessage)

Flashmessage for Anax MVC

Available at Packagist as [flashmessage](https://packagist.org/packages/pmn834/flashmessage).

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/583be93720546f3506b51c4d0b7bc07ce3d1a93f59ca7f31b6b3ad93d0cb009f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f706d6e3833342f43466c6173686d6573736167652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/pmn834/CFlashmessage/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/39f28be6166712e1ef387b785d89bae2d3f96c3808378105fb0f7b3ff3431c1b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f706d6e3833342f43466c6173686d6573736167652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/pmn834/CFlashmessage/?branch=master)[![Build Status](https://camo.githubusercontent.com/bb153f6878e45c498ba60e37532862339fcdd37ca907aafb2254c541d979c808/68747470733a2f2f7472617669732d63692e6f72672f706d6e3833342f43466c6173686d6573736167652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/pmn834/CFlashmessage)

Using CFlashmessage
-------------------

[](#using-cflashmessage)

Copy the file *flashmessage.css* from the `CFlashmessage/css` folder to your Anax `webroot/css` folder. This stylesheet can then be added to your frontcontroller.

```
$app->theme->addStylesheet("css/flashmessage.css");
```

Add CFlashmessage as a service.

```
$di->setShared('flash', function() {
    $flashmessage = new \pmn834\CFlashmessage\CFlashmessage();
    return $flashmessage;
});
```

Start a session before using CFlashmessage.

```
$app->session();
```

One or more flashmessages can then be added.

```
$app->flash->info("Info flash message");
$app->flash->error("Error flash message");
$app->flash->success("Success flash message");
$app->flash->warning("Warning flash message");
```

To get all flashmessages as HTML use `flash->output()`.

```
$app->flash->output();
```

The `CFlashmessage/webroot` folder includes the frontcontroller `flashtest.php` to test the CFlashmessage service.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

3

Last Release

4030d ago

Major Versions

v1.0 → v2.02015-05-06

v2.0 → v3.02015-05-06

### Community

Maintainers

![](https://www.gravatar.com/avatar/593ce313ca354b195949ee27c972b889691bcc9939e3ef8176dc73f915d5ce46?d=identicon)[pmn834](/maintainers/pmn834)

---

Top Contributors

[![pmn834](https://avatars.githubusercontent.com/u/11994784?v=4)](https://github.com/pmn834 "pmn834 (24 commits)")

---

Tags

mvcflashanaxflashmessage

### Embed Badge

![Health badge](/badges/pmn834-flashmessage/health.svg)

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

###  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)[caffeinated/flash

Flash Messages for Laravel

4649.5k2](/packages/caffeinated-flash)[cartalyst/alerts

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

3064.2k](/packages/cartalyst-alerts)[sabre/amf

SabreAMF is a Flash Remoting server and client for PHP

415.9k1](/packages/sabre-amf)[ikkez/f3-flash

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

1926.0k5](/packages/ikkez-f3-flash)

PHPackages © 2026

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