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)0313MITJavaScriptPHP &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 today

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 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

910d 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

[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[jbtronics/settings-bundle

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

9773.0k3](/packages/jbtronics-settings-bundle)[ahmed-bhs/doctrine-doctor

Runtime analysis tool for Doctrine ORM integrated into Symfony Web Profiler. Unlike static linters, it analyzes actual query execution at runtime to detect performance bottlenecks, security vulnerabilities, and best practice violations during development with real execution context and data.

9410.8k](/packages/ahmed-bhs-doctrine-doctor)[ecotone/symfony-bundle

Ecotone for Symfony — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Symfony Messenger, via PHP attributes.

11249.0k1](/packages/ecotone-symfony-bundle)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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