Integrate flash notifications into Symfony projects effortlessly with PHPFlasher. Improve user experience and application feedback loops easily.
php-flasher/flasher-symfony is a Laravel package for integrate flash notifications into symfony projects effortlessly with phpflasher. improve user experience and application feedback loops easily..
It currently has 13 GitHub stars and 1.330.574 downloads on Packagist (latest version v2.6.1).
Install it with composer require php-flasher/flasher-symfony.
Discover more Laravel packages by php-flasher
or browse all Laravel packages to compare alternatives.
Last updated
Symfony framework adapter for PHPFlasher. Seamless integration with zero JavaScript setup.
composer require php-flasher/flasher-symfony
Run the install command:
php bin/console flasher:install
// 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');
}
Publish configuration file:
php bin/console flasher:install --config
This creates config/packages/flasher.yaml where you can customize:
Complete documentation: php-flasher.io