PHPackages                             frjf14/cflashmessage - 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. frjf14/cflashmessage

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

frjf14/cflashmessage
====================

Class for flash messages.

011JavaScript

Since Dec 6Pushed 11y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/be317139ab420c6d2e706852d1b39477349efc9f4bfcc8729b0f1b65892dcb76/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f66726a6631342f63666c6173686d6573736167652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/frjf14/cflashmessage/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/915736503bc87c34f683d3967a2d1fab50ff260e6383325e83a341d974646961/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f66726a6631342f63666c6173686d6573736167652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/frjf14/cflashmessage/?branch=master)[![Build Status](https://camo.githubusercontent.com/30506ca42af89941f9feae7e5b08b8b852219f566f79a25ea1e2417ce6a04a6e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f66726a6631342f63666c6173686d6573736167652f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/frjf14/cflashmessage/build-status/master)

Flash messages - Anax MVC
=========================

[](#flash-messages---anax-mvc)

cflashmessage handles error, success, notice and warning messages, which can be used to give the user feedback.

License
-------

[](#license)

This software is free software and carries a MIT license.

How to use flash messages
-------------------------

[](#how-to-use-flash-messages)

Adding it as shared service in the frontcontroller.

`$di->setShared('flashmessage', function() { $flashmessage = new \frjf14\FlashMessage\CFlashMessage(); return $flashmessage; });`

From the package Copy the css file: frjf14/cflashmessage/src/css/flashmessage.css to the webroot css folder: webroot/css/ then add the css to the frontcontroller `$app->theme->addStylesheet('css/flashmessage.css');` or just link directly to the CSS file within the package `$app->theme->addStylesheet('../vendor/frjf14/cflashmessage/src/css/flashmessage.css');`

Now you can add flash messages as an example error message: `$app->flashmessage->addError('An error message.');` and to display the message use `$app->flashmessage->getFlashMessages();` to retrive the message(s) as html.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![Fredrik-J](https://avatars.githubusercontent.com/u/7112803?v=4)](https://github.com/Fredrik-J "Fredrik-J (9 commits)")

### Embed Badge

![Health badge](/badges/frjf14-cflashmessage/health.svg)

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

PHPackages © 2026

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