PHPackages                             rocketmedia-cz/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. rocketmedia-cz/flashmessages

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

rocketmedia-cz/flashmessages
============================

Visual component for displaying FlashMessages

1.0.1(12y ago)017Copyright 2014 David ZadrazilPHPPHP &gt;=5.4.0

Since Mar 1Pushed 12y ago1 watchersCompare

[ Source](https://github.com/Rocketmediacz/FlashMessages)[ Packagist](https://packagist.org/packages/rocketmedia-cz/flashmessages)[ Docs](https://github.com/Rocketmediacz/FlashMessages)[ RSS](/packages/rocketmedia-cz-flashmessages/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Quickstart
==========

[](#quickstart)

This simple visual addon help to display and translate flash messages.

Requirements
------------

[](#requirements)

- PHP 5.4.0 or higher
- [Nette Framework 2.1](https://github.com/nette/nette)

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

[](#installation)

The best way is by Composer:

```
    $ composer require rocketmedia-cz/flashmessages:dev-master
```

Or you can simple download package and place it to vendor/others folder.

---

and you must enable addon through your cofing.neon, just put these lines into it

```
services:
	flashmessages:
		implement: Scribe\Addons\FlashMessages\IFlashMessagesControlFactory
		parameters: [templateFile, translator]
		arguments: [%templateFile%, %translator%]

```

or if you won't change template file or use translator with magic function throught interface, you can use shorted version

```
services:
	flashmessages: Scribe\Addons\FlashMessages\IFlashMessagesControlFactory

```

Setup
-----

[](#setup)

In presenter we can use @inject annotation from Nette version 2.1 -

```
/** @var \Scribe\Addons\FlashMessages\IFlashMessagesControlFactory @inject */
public $flashMessagesControl;

/**
 * @return \Scribe\Addons\FlashMessages\FlashMessagesControl
 */
protected function createComponentFlashMessages()
{
	return $this->flashMessagesControl->create();
}
```

If we want to change template file or translate our messages, we have to change parameters in *create()* function.

```
return $this->flashMessagesControl->create('newTemplateFile.latte', $ourTranslator);
```

Usage
-----

[](#usage)

Just initialize component in template and it is.

```
{control flashMessages}
```

Default template is in snippet, so you can redraw snippet with flash messages

```
$this->redrawControl('flashMessages');
```

---

Created by [David Zadražil](https://github.com/DavidZadrazil) for [Rocketmedia.cz](http://rocketmedia.cz).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Every ~0 days

Total

2

Last Release

4452d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/508894d4258b845a3258150a9d5922a9147bd768656891322ec411ef645b9ccd?d=identicon)[rocketmedia-cz](/maintainers/rocketmedia-cz)

---

Top Contributors

[![davidzadrazil](https://avatars.githubusercontent.com/u/1330026?v=4)](https://github.com/davidzadrazil "davidzadrazil (12 commits)")

---

Tags

netteflashmessagerocketmedia

### Embed Badge

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

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

###  Alternatives

[nette/utils

🛠 Nette Utils: lightweight utilities for string &amp; array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.

2.1k394.3M1.5k](/packages/nette-utils)[nette/php-generator

🐘 Nette PHP Generator: generates neat PHP code for you. Supports new PHP 8.5 features.

2.2k64.2M574](/packages/nette-php-generator)[nette/robot-loader

🍀 Nette RobotLoader: high performance and comfortable autoloader that will search and autoload classes within your application.

89152.7M320](/packages/nette-robot-loader)[vojtech-dobes/nette-forms-gpspicker

Google Maps based picker of coordinates for Nette Framework.

2456.6k](/packages/vojtech-dobes-nette-forms-gpspicker)

PHPackages © 2026

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