php-flasher/flasher-symfony

Integrate flash notifications into Symfony projects effortlessly with PHPFlasher. Improve user experience and application feedback loops easily.
1,339,952 13
Install
composer require php-flasher/flasher-symfony
Latest Version:v2.6.1
PHP:>=8.2
License:MIT
Last Updated:Apr 13, 2026
Links: GitHub  ·  Packagist
Maintainer: yoeunes

PHPFlasher Symfony Adapter

Latest Version Total Downloads License

Symfony framework adapter for PHPFlasher. Seamless integration with zero JavaScript setup.

Requirements

  • PHP >= 8.2
  • Symfony >= 7.0

Installation

composer require php-flasher/flasher-symfony

Run the install command:

php bin/console flasher:install

Quick Start

// Success notification
flash('Your changes have been saved!');

// In controller
public function save(): Response
{
    // Your logic...

    flash('Operation completed successfully!');

    return $this->redirectToRoute('home');
}

// With dependency injection
public function save(FlasherInterface $flasher): Response
{
    // Your logic...

    $flasher->success('Changes saved!');

    return $this->redirectToRoute('home');
}

Configuration

Publish configuration file:

php bin/console flasher:install --config

This creates config/packages/flasher.yaml where you can customize:

  • Default adapter
  • Global options
  • Flash bag mapping
  • Presets

Documentation

Complete documentation: php-flasher.io

License

MIT

Related Packages

php-flasher/flasher-notyf-symfony

Adopt Notyf's simple flash notifications in Symfony projects with PHPFlasher. St...

394,085 8
php-flasher/flasher-laravel

Seamlessly integrate flash notifications into your Laravel applications with PHP...

3,002,224 44
php-flasher/flasher-noty-symfony

Bring Noty.js flash notifications to Symfony projects using PHPFlasher. Leverage...

384,115 5
php-flasher/flasher-sweetalert-symfony

Utilize SweetAlert for dynamic notifications in Symfony with PHPFlasher. Bring e...

19,857 8
php-flasher/flasher-sweetalert-laravel

Incorporate SweetAlert's interactive notifications into Laravel applications wit...

61,762 9