PHPackages                             nuvalis/mzflash - 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. nuvalis/mzflash

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

nuvalis/mzflash
===============

Session based flash message class. Written for Anax-MVC part of the dbwebb course.

v1.0.0(12y ago)026MITPHPPHP &gt;=5.4

Since May 14Pushed 12y ago1 watchersCompare

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

READMEChangelog (1)DependenciesVersions (2)Used By (0)

mzFlash
=======

[](#mzflash)

[![Build Status](https://camo.githubusercontent.com/c6e3ba54f9dbe130da5ab82e83a0ebcd5d6b47651ef59d851bea55ccdc576f09/68747470733a2f2f7472617669732d63692e6f72672f6e7576616c69732f6d7a466c6173682e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/nuvalis/mzFlash)

A PHP Flash Message Class

Installation Instructions for Anax-MVC
======================================

[](#installation-instructions-for-anax-mvc)

Register it as an Anax Service like this in your config/frontcontroller or whatever method you prefer.

```
$di = new \Anax\DI\CDIFactoryDefault();

// Other Services

$di->setShared('mzflash', function() {
	$mzflash = new \nuvalis\Flash\Message();
	return $mzflash;
});

// Other Services, Controllers etc.

$app = new \Anax\Kernel\CAnax($di);

$app->session //Start Session for mzFlash to work.

```

You should now be able to use these functions like this.

```
// In the Frontcontroller you can do it like this.

$app->mzflash->error("Your Message");
$app->mzflash->success("Your Message");
$app->mzflash->warning("Your Message");
$app->mzflash->message("Your Message");

// If you are in a Controller or Model (Notice the diffrence $app/$this)

$this->mzflash->error("Your Message");
$this->mzflash->success("Your Message");
$this->mzflash->warning("Your Message");
$this->mzflash->message("Your Message");

//To print it out you can use it like this in your Anax-MVC/theme/mytheme/index.tpl.php

// The Output will look something like this

		Your Message
		Your Message
		Your Message
		Your Message

```

Update
======

[](#update)

\[14 May, 2014\] Changed variable from flash to mzflash to avoid collision with Anax-MVC's new flash class/service. You can name this service to anything you want.

###  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

4387d ago

### Community

Maintainers

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

---

Top Contributors

[![nuvalis](https://avatars.githubusercontent.com/u/4467675?v=4)](https://github.com/nuvalis "nuvalis (22 commits)")

---

Tags

messageflasheducationanaxanax mvcmzFlash

### Embed Badge

![Health badge](/badges/nuvalis-mzflash/health.svg)

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

###  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)
