PHPackages                             helikopterspark/flashmsg - 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. helikopterspark/flashmsg

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

helikopterspark/flashmsg
========================

Message controller for ANAX-MVC

v2.0(10y ago)061MITPHPPHP &gt;=5.4

Since Nov 16Pushed 10y ago1 watchersCompare

[ Source](https://github.com/helikopterspark/FlashMsg)[ Packagist](https://packagist.org/packages/helikopterspark/flashmsg)[ Docs](http://dbwebb.se)[ RSS](/packages/helikopterspark-flashmsg/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

[![Build Status](https://camo.githubusercontent.com/dc1881ef981f89f136f470b625e1ddefa8597c8981b5b9d1bef1187fb7cea174/68747470733a2f2f7472617669732d63692e6f72672f68656c696b6f70746572737061726b2f466c6173684d73672e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/helikopterspark/FlashMsg)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/1e027783180217ad973258ffa9824881f388876bda482cac0d251f51c233d136/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f68656c696b6f70746572737061726b2f466c6173684d73672f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/helikopterspark/FlashMsg/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/57415c0865ab08d3abf7e51857dae4be948bf8c3c8c012a1622b7da3cfdb3f77/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f68656c696b6f70746572737061726b2f466c6173684d73672f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/helikopterspark/FlashMsg/?branch=master)

FlashMessage
============

[](#flashmessage)

This is a module for the Anax-MVC web framework. The module has been developed as a part of a course on Blekinge Tekniska Högskola.

Flash messages are used to display status messages, results of actions or notices. Use this component to generate these types of messages.

The class FlashMsg uses the session service in Anax-MVC to store the messages until the array is cleared.

\#Installation

1. To install, use composer.
2. Add this line into your composer.json file:

```
"require": {"helikopterspark/flashmsg": "dev-master"}

```

3. Move or copy the css/flashmsg.css file to the webroot/css folder in your Anax-MVC installation. Modify it to your liking.
4. In the router you also need to add the css-stylesheet flashmsg.css.
5. You can move or copy the file flashmessages.php to your webroot to test in a web browser.

\#Access the controller in your frontcontroller:

```
$di->setShared('flashmessage', function() use ($di){
    $flashMessages = new \helikopterspark\FlashMsg\FlashMsg();
    $flashMessages->setDI($di);
    return $flashMessages;
});

```

\#Add the route in your frontcontroller:

```
$app->router->add('', function() use ($app) {
	$app->theme->addStylesheet('css/flashmsg.css');
	$app->theme->setTitle("Flash messages");

	$app->flashmessage->alert('Alert');
	$app->flashmessage->error('Error');
	$app->flashmessage->info('Info');
	$app->flashmessage->notice('Notice');
	$app->flashmessage->success('Success');
	$app->flashmessage->warning('Warning');

	$app->views->add('theme/index', ['content' => $app->flashmessage->outputMsgs()]);

	$app->flashmessage->clearMessages();

});

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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

Total

2

Last Release

3870d ago

Major Versions

v1.0 → v2.02015-11-24

### Community

Maintainers

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

---

Tags

flashmessageFlashMsg

### Embed Badge

![Health badge](/badges/helikopterspark-flashmsg/health.svg)

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

PHPackages © 2026

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