Integrate Toastr's smooth toast notifications into Symfony projects using PHPFlasher. Enhance Symfony applications with Toastr's refined visuals.
php-flasher/flasher-toastr-symfony is a Laravel package for integrate toastr's smooth toast notifications into symfony projects using phpflasher. enhance symfony applications with toastr's refined visuals..
It currently has 6 GitHub stars and 408.711 downloads on Packagist (latest version v2.6.1).
Install it with composer require php-flasher/flasher-toastr-symfony.
Discover more Laravel packages by php-flasher
or browse all Laravel packages to compare alternatives.
Last updated
Symfony adapter for PHPFlasher Toastr. Seamlessly integrate Toastr notifications into Symfony applications.
composer require php-flasher/flasher-toastr-symfony
// Global helper
toastr('Your changes have been saved!');
// In controller
public function save(): RedirectResponse
{
// Your logic...
toastr('Operation completed successfully!');
return $this->redirectToRoute('home');
}
// With options
toastr('Success message', [
'timeOut' => 5000,
'positionClass' => 'toast-top-right',
]);
toastr() global functionToastrFactory autowired in constructorsPublish configuration:
php bin/console flasher:install --config
Add to config/packages/flasher.yaml:
flasher:
toastr:
options:
timeOut: 5000
progressBar: true
positionClass: toast-top-right
Complete documentation: php-flasher.io