PHPackages                             kaistaerk/ajax-flash-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. kaistaerk/ajax-flash-message-bundle

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

kaistaerk/ajax-flash-message-bundle
===================================

Handle ajax flash messages for symfony 5

2.1.1(2y ago)0310MITJavaScriptPHP &gt;=7.4

Since Aug 6Pushed 2y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (1)Versions (5)Used By (0)

AjaxFlashMessageBundle
======================

[](#ajaxflashmessagebundle)

Symfony bundle to handle symfony flash messages called by ajax actions

Bundle will catch all FlashBag messages set in ajax actions in controllers when send an request via jquery and display it as it would show flash messages used in normal symfony controller actions. You can override flash message styles as you wish. At the moment they should look quite user friendly/UX.

Step 1: Install package
=======================

[](#step-1-install-package)

```
composer req kaistaerk/ajax-flash-message-bundle
```

Step 2: Install assets
======================

[](#step-2-install-assets)

```
php app/console assets:install public --symlink --relative
```

If your public directory is not `public` please modify the command above.

Step 3: Include the messages template
=====================================

[](#step-3-include-the-messages-template)

In layout file:

```
{{ include('@AjaxFlashMessage/Messenger/messages.html.twig') }}
```

Step 4: add assets to your main layout file
===========================================

[](#step-4-add-assets-to-your-main-layout-file)

Add jQuery as well if it's not already done.

```
{% block javascripts %}
    // ...

{% endblock %}
{% block stylesheets %}
    // ...

{% endblock %}
```

Usage
=====

[](#usage)

Add this call to a script block in your layout or to some of your templates:

```

$('#flash-messages').flashNotification('init');

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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 ~172 days

Total

4

Last Release

856d ago

Major Versions

1.0 → 2.02022-12-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/25e6cae9cef23ce4a90e5c43e55d1df53c3207020e04a398f7b76872acaf5b95?d=identicon)[kaistaerk](/maintainers/kaistaerk)

---

Top Contributors

[![kaistaerk](https://avatars.githubusercontent.com/u/12458850?v=4)](https://github.com/kaistaerk "kaistaerk (7 commits)")

---

Tags

symfonyajaxflash messageflashbag

### Embed Badge

![Health badge](/badges/kaistaerk-ajax-flash-message-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/kaistaerk-ajax-flash-message-bundle/health.svg)](https://phpackages.com/packages/kaistaerk-ajax-flash-message-bundle)
```

###  Alternatives

[winzou/state-machine-bundle

Bundle for the very lightweight yet powerful PHP state machine

34010.4M15](/packages/winzou-state-machine-bundle)[pentatrion/vite-bundle

Vite integration for your Symfony app

2725.3M13](/packages/pentatrion-vite-bundle)[craue/config-bundle

Database-stored settings made available via a service for your Symfony project.

1771.0M4](/packages/craue-config-bundle)[maba/webpack-bundle

Bundle to Integrate Webpack to Symfony

123268.2k4](/packages/maba-webpack-bundle)[jbtronics/settings-bundle

A symfony bundle to easily create typesafe, user-configurable settings for symfony applications

9546.7k2](/packages/jbtronics-settings-bundle)

PHPackages © 2026

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