PHPackages                             mazarini/message-bundle - 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. mazarini/message-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

mazarini/message-bundle
=======================

Display alerts on webpage.

v1.0.0(2y ago)023GPL-3.0-or-laterPHPPHP &gt;=8.1

Since Dec 20Pushed 2y ago1 watchersCompare

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

READMEChangelogDependencies (12)Versions (2)Used By (0)

mazarini/message-bundle
=======================

[](#mazarinimessage-bundle)

Display alerts on webpage for symfony using [alert](https://getbootstrap.com/docs/5.3/components/alerts/) from [bootstrap](https://getbootstrap.com/).

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

[](#installation)

```
foo@bar:~$ composer require mazarini/message-bundle
```

Add alerts with twig
--------------------

[](#add-alerts-with-twig)

In template/base.html.twig :

```
{% include('@MazariniMessage/_messages.html.twig') %}
```

Display alerts in create order
------------------------------

[](#display-alerts-in-create-order)

In each controller :

```
