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

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

sial/flashmessage
=================

PHP Class for handling flash messages

08PHP

Since Dec 6Pushed 11y ago1 watchersCompare

[ Source](https://github.com/sibala/FlashMessage)[ Packagist](https://packagist.org/packages/sial/flashmessage)[ RSS](/packages/sial-flashmessage/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#flashmessage)

Php class for flash messsages. [![Build Status](https://camo.githubusercontent.com/f3d49261bd692264ea4f2ee2a0b12fd62a41f759e8341022983f38bc60cf2046/68747470733a2f2f7472617669732d63692e6f72672f736962616c612f466c6173684d6573736167652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/sibala/FlashMessage)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/910a8d589a8619042e920fcb1dc96d95864b462694f88679202a54bfa6334574/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f736962616c612f466c6173684d6573736167652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sibala/FlashMessage/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/92df3b2aaad64790b238ae3176222f2c371f39e1f29ec27d784d21c4f28fcef8/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f736962616c612f466c6173684d6573736167652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/sibala/FlashMessage/?branch=master)

\###License This software is free software and carries a MIT license.

How to use
----------

[](#how-to-use)

\###1. Download

Install using composer. Add to your composer.json:

```
"require": {
    "sial/FlashMessage": "dev-master"
},

```

You can also download as .zip!

\###2. include FlashMessage in ANAX-application To include FlashMessage in your ANAX-application, add the class in your front controller:

```
$di->set('Flash', function() use ($di) {
	$flash = new \Sial\FlashMessage\CFlashMessage();
	$flash->setDI($di);
	return $flash;
});

```

Also an example in webroot shows how to include FlashMessage in your ANAX-application.

\###3. set messages

```
$app->Flash->setMessage('success')

```

\###4. Display messages

```
$app->Flash->getMessage()

```

\###5. Options You have 2 params in setMessages() as shown in the example below.

```
$app->Flash->setMessage(messageType, message)

```

You can choose from 4 message types ( success, notice, warning, error) in the first param.

The second param is optional that enables you to write your own custom message. If not set a default message will be prompted.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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/283229f8df5edd9e47b7cfc87089eb5af402042b52614b240947f70117a2c497?d=identicon)[sial](/maintainers/sial)

---

Top Contributors

[![sibala](https://avatars.githubusercontent.com/u/8978569?v=4)](https://github.com/sibala "sibala (7 commits)")[![sibaralani](https://avatars.githubusercontent.com/u/15137177?v=4)](https://github.com/sibaralani "sibaralani (1 commits)")

### Embed Badge

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

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

###  Alternatives

[kdyby/forms-replicator

Nette forms container replicator aka addDynamic

321.0M6](/packages/kdyby-forms-replicator)[maximecolin/satisfaction

A PHP implementation of the specification pattern for DDD

3530.7k](/packages/maximecolin-satisfaction)[mangoweb-sylius/sylius-extended-channels

Extended channels plugin for Sylius

1318.8k](/packages/mangoweb-sylius-sylius-extended-channels)

PHPackages © 2026

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