php-notify/notify-symfony

This package is abandoned and no longer maintained. The author suggests using the php-flasher/flasher-symfony package instead.

Integrate flash notifications into Symfony projects effortlessly with PHPFlasher. Improve user experience and application feedback loops easily.

Maintainers

Package info

github.com/php-flasher/flasher-symfony

Homepage

Issues

Type:symfony-bundle

pkg:composer/php-notify/notify-symfony

Fund package maintenance!

yoeunes

Statistics

Installs: 22 887

Dependents: 0

Suggesters: 0

Stars: 13

v2.5.0 2026-03-07 18:31 UTC

README

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