PHPackages                             ajt/flashbundle - 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. ajt/flashbundle

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

ajt/flashbundle
===============

Symfony bundle for for managing flash messages

1.5.0(10y ago)04.2kMITPHPPHP &gt;=5.6

Since Mar 21Pushed 10y agoCompare

[ Source](https://github.com/andrewtarry/ajt-flashbundle)[ Packagist](https://packagist.org/packages/ajt/flashbundle)[ RSS](/packages/ajt-flashbundle/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (6)Versions (7)Used By (0)

Flash Bundle
============

[](#flash-bundle)

[![Build Status](https://camo.githubusercontent.com/835ae04401ebb6c6aa88b2bb5bc49d4bb6d67c095ba7d34056d083a738aa3632/68747470733a2f2f7472617669732d63692e6f72672f616e6472657774617272792f616a742d666c61736862756e646c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/andrewtarry/ajt-flashbundle)[![SensioLabsInsight](https://camo.githubusercontent.com/ee107473edcc5bcc3e6c66f5f76667ae37c07fd4335b551bc3d85d89a6054bd7/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f64373835343962312d313634352d346365372d383834652d3530646637643730333036332f6269672e706e67)](https://insight.sensiolabs.com/projects/d78549b1-1645-4ce7-884e-50df7d703063)

The AJT Flash Bundle will manage the use of Symfony flash messages with a simple API.

Usage
-----

[](#usage)

Inject the Flash service into any service

```

```

Use it in service

```
class MyClass
{

    private $flash;

    public function __construct(FlashInterface $flash)
    {
        $this->flash = $flash;
    }

    public function goThings()
    {
        ...
        $this->flash->success("Well done");
    }
}
```

Use the twig function in your template,

```
{{ ajt_flash() }}
```

Or if you want to only display some types of message

```
{{ ajt_flash('error') }}
```

Standard Types
--------------

[](#standard-types)

By default the Flash bundle will support the standard bootstrap alert types.

```
// Set a custom type

$flash->set('my message', 'myType');

// Bootstrap
$flash->success('my message');
$flash->error('my message');
$flash->info('my message');
$flash->warning('my message');
```

Custom Css
----------

[](#custom-css)

Custom css classes can be set by modifying config.

```
ajt_flash:
	default_class: alert # Added to every flash

	# CSS to add to the standard flash types - default to bootstrap
	core:
		success: alert-success
		error: alert-danger
		info: alert-info
		warning: alert-warning

	# Add a custom flash type called myType with the css myCss
	custom:
		myType:
			type: myType
			css: myCss
```

###  Health Score

30

—

LowBetter than 67% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 60% 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 ~93 days

Recently: every ~112 days

Total

6

Last Release

3918d ago

PHP version history (3 changes)1.1.0PHP &gt;=5.5

1.3.0PHP &gt;=5.3

1.5.0PHP &gt;=5.6

### Community

Maintainers

![](https://www.gravatar.com/avatar/835e2958b86ad85ea13e0b520d35eb4e1bffeba2e3c069b6f4885382556e2afd?d=identicon)[AndrewTarry](/maintainers/AndrewTarry)

---

Top Contributors

[![andrewtarrybt](https://avatars.githubusercontent.com/u/9610512?v=4)](https://github.com/andrewtarrybt "andrewtarrybt (12 commits)")[![andrewtarry](https://avatars.githubusercontent.com/u/1941015?v=4)](https://github.com/andrewtarry "andrewtarry (8 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ajt-flashbundle/health.svg)

```
[![Health](https://phpackages.com/badges/ajt-flashbundle/health.svg)](https://phpackages.com/packages/ajt-flashbundle)
```

###  Alternatives

[sonata-project/classification-bundle

Symfony SonataClassificationBundle

913.1M18](/packages/sonata-project-classification-bundle)[hackzilla/ticket-bundle

This Bundle provides multilingual ticketing functionality for Symfony applications.

6429.3k1](/packages/hackzilla-ticket-bundle)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3688.5k7](/packages/netgen-layouts-core)[kunstmaan/utilities-bundle

The KunstmaanUtilitiesBundle makes your life easier by providing a couple of small but usefull helper services you can use and re-use in your applications. We already implemented an easy to use cipher service and a shell helper service for you but feel free to send in a pull request with your additions. The shell helper allows you to run apps in the background, see if a process is running and has a method to kill a running process. The cipher service allow you to encode and decode strings using the Rijndael 256 cipher

12149.8k2](/packages/kunstmaan-utilities-bundle)[netgen/content-browser

Netgen Content Browser is a Symfony bundle that provides an interface which selects items from any kind of backend and returns the IDs of selected items back to the calling code.

14111.1k6](/packages/netgen-content-browser)[leapt/core-bundle

Symfony LeaptCoreBundle

2528.6k3](/packages/leapt-core-bundle)

PHPackages © 2026

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