PHPackages                             erogami/cfmessage - 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. erogami/cfmessage

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

erogami/cfmessage
=================

Class for flash messages

029PHP

Since Jan 17Pushed 11y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

[![Build Status](https://camo.githubusercontent.com/65fddd88b8e0dd6e98bcdbcbf911e24d660b06ee011da1915f40f1fc611181d7/68747470733a2f2f7472617669732d63692e6f72672f68656e616d312f63666d6573736167652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/henam1/cfmessage)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/5bdc9f4c0a4d09e7c3c94ba21bd1a87cbad8e49238c7cda7bc574d26dd44f6bd/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f68656e616d312f63666d6573736167652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/henam1/cfmessage/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/c8e4a0eb57ca3d4d1539bcef37b5c16b10aa7af57c18a8a52e13d0db4cebd9c3/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f68656e616d312f63666d6573736167652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/henam1/cfmessage/?branch=master)

Cfmessage
=========

[](#cfmessage)

Flash messages, a class to show sucess, info, warning and error messages for the user.

By Alex Chau, [alex\_chau6@hotmail.com](mailto:alex_chau6@hotmail.com)

Instructions
------------

[](#instructions)

\###1. Download

First of all install by using composer. Add this code to your composer.json:

```
"require": {
    "erogami/cfmessage": "dev-master"
},
```

\###2. Include Cfmessage in your framework

Add this code to your front-controller.

```
$di->set('Cfmessage', function() use ($di) {
    $message = new \erogami\Cfmessage\Cfmessage($di);
    return $message;
});
```

Now add these lines to get your message.

For info messages:

```
    $app->Cfmessage->addInfo('This is an information message');
```

For error messages:

```
    $app->Cfmessage->addError('This is an error message');
```

For warning messages:

```
    $app->Cfmessage->addWarning('This is a warning message');
```

For success messages:

```
    $app->Cfmessage->addSuccess('This is a success message');
```

The messages will be saved in the session, call these lines to print out the messages:

```
    $messages = $app->Cfmessage->printMessage();
    $app->views->addString($messages);
```

The class uses Font Awesome, but works without it too. So it's optional wheter you want to include the icons or not.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

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/9920119?v=4)[henam1](/maintainers/henam1)[@henam1](https://github.com/henam1)

---

Top Contributors

[![henam1](https://avatars.githubusercontent.com/u/9920119?v=4)](https://github.com/henam1 "henam1 (31 commits)")

### Embed Badge

![Health badge](/badges/erogami-cfmessage/health.svg)

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

###  Alternatives

[kreativekorp/barcode

Generate barcodes from a single PHP file.

28518.7k](/packages/kreativekorp-barcode)[villca/numeros-en-letras

Convierte cualquier número en letras con el valor correspondiente.

1338.0k](/packages/villca-numeros-en-letras)[aloko/nova-persian-datepicker

Persian Datepicker for Laravel Nova.

203.7k](/packages/aloko-nova-persian-datepicker)

PHPackages © 2026

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