PHPackages                             meshood/cflash - 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. [Framework](/categories/framework)
4. /
5. meshood/cflash

ActiveLibrary[Framework](/categories/framework)

meshood/cflash
==============

PHP class for displaying messages on a website.

v2.0(10y ago)018MITHTMLPHP &gt;=5.4

Since May 17Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (9)Used By (0)

CFlash a PHP class for creating and render a message on a website or webapplication built with Anax-MVC.
========================================================================================================

[](#cflash-a-php-class-for-creating-and-render-a-message-on-a-website-or-webapplication-built-with-anax-mvc)

[![Build Status](https://camo.githubusercontent.com/3f32bbf2f62b865a19ab443f22aa9dee932e9adaae2af8ca3a9b9d19b31e0d15/68747470733a2f2f7472617669732d63692e6f72672f4d6573686f6f642f43466c6173682e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Meshood/CFlash)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/c86b898d79806a1796f80451fdd3bd3b9d4c77c0d88ab2df47cd801cacee1c86/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4d6573686f6f642f43466c6173682f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Meshood/CFlash/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/a8b081569acb513fe86c38f6a16b9fd425a6f80cd8a95fc8e55ed0f6bb56687a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4d6573686f6f642f43466c6173682f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Meshood/CFlash/?branch=master)

License
-------

[](#license)

This software is free software and carries a MIT license.

Installation
------------

[](#installation)

You will need a version of Anax-MVC for this module to work. Use Composer to download the module from Packagist into your Anax-MVC framework.

Once downloaded you will need to make it a service in the framework. You can do this in two ways.

1. Put the following code in your CDIFactoryDefault file or if you have made your own, then use that one.
2. Or you can take the same code but replace "$this-&gt;" with "$di-&gt;" and put it in your front controller.

```
$this->setShared('flash', function ()
{
    $flash = new \meshood\Flash\CFlash();
    return $flash;
});

```

You can now use the module like this.

```
$app->flash->message('information', 'This message is used for displaying information');
$app->flash->message('warning', 'This message is used for displaying a warning');
$app->flash->message('success', 'This message is used for displaying success');
$app->flash->message('error', 'This message is used for displaying an error');

```

Then use this code to get the html for the message(s).

```
$app->flash->getMessage(),

```

If your want to test so the module works just copy the test.php file from the webroot in the module to your Anax-MVC webroot and point your browser to it.

And if you want basic styling you can copy the flash.css file from the module and put it in the css folder in Anax-MVC webroot.

History
-------

[](#history)

v0.8.1 (2015-05-17)

- Fixed missing documentation.

v0.8 (2015-05-17)

- Now using namespace meshood\\Flash.
- Added history documentation.
- Added install documentation.
- Removed unnecessary files.

v0.1.1 (2015-05-17)

- Fixed missing code in test.php.
- Now using namespace Meshood\\Flash.

v0.1 (2015-05-17)

- Initial commit.
- Working class.
- Not working woth Packagist.
- Missing documentation.
- Working css to go with the class.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

Recently: every ~19 days

Total

8

Last Release

3943d ago

Major Versions

v0.9.1 → v1.02015-05-17

v1.0 → v2.02015-08-01

### Community

Maintainers

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

---

Top Contributors

[![Meshood](https://avatars.githubusercontent.com/u/11250467?v=4)](https://github.com/Meshood "Meshood (15 commits)")

---

Tags

frameworkmicromvcmoduleeducation

### Embed Badge

![Health badge](/badges/meshood-cflash/health.svg)

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

PHPackages © 2026

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