PHPackages                             zf-hipsters/bootstrap-flash-messenger - 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. zf-hipsters/bootstrap-flash-messenger

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

zf-hipsters/bootstrap-flash-messenger
=====================================

Simple implementation of ZF2 flash messengers using bootstrap. Contains easy helpers that will save you a LOT of time.

1.02(12y ago)159.3k↓50%[3 issues](https://github.com/zf-hipsters/bootstrap-flash-messenger/issues)PHPPHP &gt;=5.3.3

Since Nov 9Pushed 12y ago3 watchersCompare

[ Source](https://github.com/zf-hipsters/bootstrap-flash-messenger)[ Packagist](https://packagist.org/packages/zf-hipsters/bootstrap-flash-messenger)[ Docs](https://github.com/zf-hipsters/bootstrap-flash-messenger)[ RSS](/packages/zf-hipsters-bootstrap-flash-messenger/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

Bootstrap Flash Messenger
=========================

[](#bootstrap-flash-messenger)

A simple module that makes flash messengers as simple as they are in CakePHP. And the best part is it generates beautifully formatted Bootstrap alerts!

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

[](#installation)

1. Add the following requirement to your projects composer.json file.

Within the "require" section:

```
"zf-hipsters/bootstrap-flash-messenger": ">=1.0"
```

2. Open up your command line and run

```
php ./composer.phar update

```

2. Add 'FlashMessenger' to your /config/application.config.php modules

Controller Plugin Examples
--------------------------

[](#controller-plugin-examples)

Simple success (this is the default namespace)

```
$this->fm('You have been logged in.');
return $this->redirect()->toRoute('dashboard');
```

Error

```
$this->fm('Your username and/or password were incorrect.', 'error');
return $this->redirect()->toRoute('authorize/login');
```

Info

```
$this->fm('Something cool happened!', 'info');
return $this->redirect()->toRoute('home');
```

Warning

```
$this->fm('Careful! Something bad could happen!', 'warning');
return $this->redirect()->toRoute('dashboard');
```

View Helper Example
-------------------

[](#view-helper-example)

Default usage

```

```

Custom Namespace(s)

```
