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

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

kakan/flashmessage
==================

Class purpose is to output feedback to the user.

06PHP

Since Dec 14Pushed 11y ago1 watchersCompare

[ Source](https://github.com/kakan/kakan)[ Packagist](https://packagist.org/packages/kakan/flashmessage)[ RSS](/packages/kakan-flashmessage/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/f57b36648d89163cd7895181bb9d891c3fb4f03ca2f57317b5b5249f0e86343e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6b616b616e2f6b616b616e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/kakan/kakan/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/ef04f2a90a452d162a916323b4379feac280fe389b7345119ae90549d0553479/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6b616b616e2f6b616b616e2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/kakan/kakan/?branch=master)[![Build Status](https://camo.githubusercontent.com/f05c73bb64b24d80b3aa79837b96b95917e2d2c8cbeff0a8dfcc1280c5d78c8e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6b616b616e2f6b616b616e2f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/kakan/kakan/build-status/master)

Flashmessage module for ANAXMVC
===============================

[](#flashmessage-module-for-anaxmvc)

FlashMessage is a tool built for anaxMVC that helps you show flash messages. This module requires you to have anaxMVC installed so make sure you have that before installing this module.

License
=======

[](#license)

This software is free software and carries a MIT license.

Installation
============

[](#installation)

Install using composer and packagist: "kakan/flashmessage": "dev-master" Note that you might have to put the stylesheet, Flashmessage.css into the correct folder by yourself. Correct folders are following

Flashmessage.css = anaxMVC/webroot/css/

CFlashMessage.php = anaxMVC/src/CFlashMessage/

How to get started
==================

[](#how-to-get-started)

The first thing you need to do for Flashmessage to work is to start a session in your front-controller. After you have started a session you need to add the following code to your front-controller of choise.

---

$di-&gt;set('flash', function() { $flash = new \\Anax\\CFlashMessage\\CFlashMessage(); return $flash; });

---

This is to initate our module, after our module is initated we are ready to use it. You now need to add the following code to show the message you would like displayed.

---

$app-&gt;theme-&gt;addStylesheet('css/FlashMessage.css');

$app-&gt;flash-&gt;newMessage('You have sucessfully installed flashMessage Module', 'Success');

$app-&gt;views-&gt;add('me/page', array('content' =&gt; $app-&gt;flash-&gt;showMessage()));

---

Your module should now be working and you can show any message you want. If the module is not working go back to the installation guide and make sure you have done every step correctly.

Functions
=========

[](#functions)

The functions are important for you because they dictate how your message is displayed.

If we take a look at what functions you can use they are the following:

newMessage($message, $type); Replace Message with what you want your flashMessage to type out. The type is what the div class will be called. This module comes with 4 preinstalled types(divs), Error,Notice,Success,Warning. You can either use theese preinstalled types or style your own types using the CSS file that follows this module.

showMessage(); This function displays all messages stored in the current session.

deleteMessage(); This function removes all messages stored in the current session.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

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://avatars.githubusercontent.com/u/6360431?v=4)[kakan](/maintainers/kakan)[@kakan](https://github.com/kakan)

---

Top Contributors

[![kakan](https://avatars.githubusercontent.com/u/6360431?v=4)](https://github.com/kakan "kakan (12 commits)")

### Embed Badge

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

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

###  Alternatives

[e0ipso/schema-forms

Creates form definitions from JSON Schema property definitions and display configuration.

11272.2k](/packages/e0ipso-schema-forms)[joaopaulolndev/filament-check-ssl-widget

A filamentPHP widget to get details about ssl certificate

181.5k](/packages/joaopaulolndev-filament-check-ssl-widget)

PHPackages © 2026

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