PHPackages                             hivefive/cflasher - 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. hivefive/cflasher

ActiveLibrary

hivefive/cflasher
=================

PHP class to create messages for a user

06PHP

Since Dec 11Pushed 11y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

CFlasher a utility PHP class for creating simple flash messages
===============================================================

[](#cflasher-a-utility-php-class-for-creating-simple-flash-messages)

[![Build Status](https://camo.githubusercontent.com/28c4887ec2b61a73fb0764850e82966e0802cedd143ab7881d7bf4e732090cc0/68747470733a2f2f7472617669732d63692e6f72672f68697665666976652f43466c61736865722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/hivefive/CFlasher) [![Code Coverage](https://camo.githubusercontent.com/9b98c91d36ff55969927df25b727a33ed8b3a988856eed4e9adce5b786f0b5c8/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f68697665666976652f43466c61736865722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/hivefive/CFlasher/?branch=master) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/6b92dece68bd61bda2b9e7f2e37c02016333c20b62db19d470c74a26b9b6ee9c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f68697665666976652f43466c61736865722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/hivefive/CFlasher/?branch=master)License
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#--license)

This software is free software and carries a MIT license.

Usage
-----

[](#usage)

The module is written primarily for Anax-MVC, originally written by Mikael Roos. To include the module into your project use:

`$di->set('flasher', '\Hivefive\CFlasher\CFlasher');`

Use `setMessage()` for setting the message. The `setMessage()`method uses two parameters. First the type of flash message. The valid message types are: 'error', 'warning', 'info' and 'success'. The second parameter is the message you want to send. If left out, it will default to 'This is an info message'.

Use `getMessage()` to get the message at required place.

Use `clearFlash()` to clear the flash message out of the session.

For styling set the class to the type of the message, then you can style the individual message types. Example in the flashtest.php testpage.

Christoffer Bäckström

###  Health Score

20

—

LowBetter than 14% 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://www.gravatar.com/avatar/10be147e6a7c12b50ce94994560bd22c7bf5814e1175652b6fc248b3c5017d02?d=identicon)[hivefive](/maintainers/hivefive)

---

Top Contributors

[![hivefive](https://avatars.githubusercontent.com/u/9114464?v=4)](https://github.com/hivefive "hivefive (10 commits)")

### Embed Badge

![Health badge](/badges/hivefive-cflasher/health.svg)

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

PHPackages © 2026

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