PHPackages                             yvonnej/flashmessages - 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. [Queues &amp; Workers](/categories/queues)
4. /
5. yvonnej/flashmessages

ActiveLibrary[Queues &amp; Workers](/categories/queues)

yvonnej/flashmessages
=====================

PHP class for create and display flashmessages

v1.0(11y ago)014MITPHPPHP &gt;=5.4

Since Jan 21Pushed 11y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

[![Build Status](https://camo.githubusercontent.com/65923ed8d37cd08f5ac56ff5b646060c9c6a3e47e426b614d962e8e123186c01/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f79766f6e6e656a2f666c6173686d657373616765732f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/yvonnej/flashmessages/build-status/master) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/b640dcb52111c8e94f5cfc2a3a5def8f0c48a133ae277fc8a38631fdef8695e6/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f79766f6e6e656a2f666c6173686d657373616765732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/yvonnej/flashmessages/?branch=master) [![Code Coverage](https://camo.githubusercontent.com/0bea44b397a99e3c9e21ba458d27563c206566cf5350a376008b0660cb0d3cf0/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f79766f6e6e656a2f666c6173686d657373616765732f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/yvonnej/flashmessages/?branch=master)

PHP class for create and display flashmessages. It is created as a module for Anax-MVC, see .

By Yvonne I Johansson

License
-------

[](#license)

This software is free software and carries a MIT license.

History
-------

[](#history)

2015-01-21 - 1.0

- Uppdate flash.css
- CFlashMessage.php

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

[](#how-to-use)

First you need to add the flashmessages module to your pagecontroller (or your CDIFactoryDefault):

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

```

Then you can use it to set message:

```
    $this->flash->error("This is an error message");

```

To retrieve messages:

```
    $this->flash->getMessage();

```

If you want to use my styling, copy flash.css from weboot to your css foleder and add this to your router:

$app-&gt;theme-&gt;addStyleSheet('css/flash.css');

Composer
--------

[](#composer)

Add yvonnej/flashmessages to your composer.json like this:

{ "require": { "yvonnj/flashmessages": "dev-master" } }

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4135d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3e68755794a3427e68cb845f3097767d5c0cc01409eaad9b027c86c4f26cf5e7?d=identicon)[yvonnej](/maintainers/yvonnej)

---

Top Contributors

[![yvonnej](https://avatars.githubusercontent.com/u/7374443?v=4)](https://github.com/yvonnej "yvonnej (19 commits)")

---

Tags

messageflashflasmessages

### Embed Badge

![Health badge](/badges/yvonnej-flashmessages/health.svg)

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

###  Alternatives

[php-amqplib/php-amqplib

Formerly videlalvaro/php-amqplib. This library is a pure PHP implementation of the AMQP protocol. It's been tested against RabbitMQ.

4.6k125.3M879](/packages/php-amqplib-php-amqplib)[aws/aws-php-sns-message-validator

Amazon SNS message validation for PHP

21421.5M91](/packages/aws-aws-php-sns-message-validator)

PHPackages © 2026

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