php-flasher/flasher-toastr-symfony
Integrate Toastr's smooth toast notifications into Symfony projects using PHPFlasher. Enhance Symfony applications with Toastr's refined visuals.
411,849
6
| Install | |
|---|---|
composer require php-flasher/flasher-toastr-symfony |
|
| Latest Version: | v2.6.3 |
| PHP: | >=8.2 |
| License: | MIT |
| Last Updated: | Aug 31, 2026 |
| Links: | GitHub · Packagist |
Maintainer: yoeunes
PHPFlasher Toastr - Symfony Adapter
Symfony adapter for PHPFlasher Toastr. Seamlessly integrate Toastr notifications into Symfony applications.
Requirements
- PHP >= 8.2
- Symfony >= 7.0
- php-flasher/flasher-symfony ^2.4.0
- php-flasher/flasher-toastr ^2.4.0
Installation
composer require php-flasher/flasher-toastr-symfony
Quick Start
// 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',
]);
Features
- Symfony Helper:
toastr()global function - Service Injection:
ToastrFactoryautowired in constructors - Twig Integration: Auto-injects assets in Twig templates
- Flash Bag: Converts Symfony flash messages to Toastr notifications
Configuration
Publish configuration:
php bin/console flasher:install --config
Add to config/packages/flasher.yaml:
flasher:
toastr:
options:
timeOut: 5000
progressBar: true
positionClass: toast-top-right
Documentation
Complete documentation: php-flasher.io
License
Related Packages
php-flasher/flasher-toastr-laravel
Leverage Toastr for stylish toast notifications in Laravel with PHPFlasher. Add...
674,844
31
php-flasher/flasher-sweetalert-symfony
Utilize SweetAlert for dynamic notifications in Symfony with PHPFlasher. Bring e...
20,151
8
php-flasher/flasher-sweetalert-laravel
Incorporate SweetAlert's interactive notifications into Laravel applications wit...
69,018
9
php-flasher/flasher-notyf-laravel
Integrate Notyf's minimalist flash notifications with Laravel via PHPFlasher. En...
441,386
7
php-flasher/flasher-symfony
Integrate flash notifications into Symfony projects effortlessly with PHPFlasher...
1,349,364
13
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| v2.6.3 | >=8.2 | MIT | |
| v2.6.2 | >=8.2 | MIT | |
| v2.6.1 | >=8.2 | MIT | |
| v2.6.0 | >=8.2 | MIT | |
| v2.5.2 | >=8.2 | MIT | |
| v2.5.1 | >=8.2 | MIT | |
| v2.5.0 | >=8.2 | MIT | |
| v2.4.0 | >=8.2 | MIT | |
| v2.3.0 | >=8.2 | MIT | |
| v2.2.2 | >=8.2 | MIT | |
| v2.2.1 | >=8.2 | MIT | |
| v2.2.0 | >=8.2 | MIT | |
| v2.1.6 | >=8.2 | MIT | |
| v2.1.5 | >=8.2 | MIT | |
| v2.1.3 | >=8.2 | MIT | |
| v2.1.2 | >=8.2 | MIT | |
| v2.1.1 | >=8.2 | MIT | |
| v2.1.0 | >=8.2 | MIT | |
| v2.0.4 | >=8.2 | MIT | |
| v2.0.3 | >=8.2 | MIT | |
| v2.0.2 | >=8.2 | MIT | |
| v2.0.1 | >=8.2 | MIT | |
| v2.0.0 | >=8.2 | MIT | |
| v1.15.14 | >=5.3 | MIT | |
| v1.15.13 | >=5.3 | MIT | |
| v1.15.12 | >=5.3 | MIT | |
| v1.15.11 | >=5.3 | MIT | |
| v1.15.10 | >=5.3 | MIT | |
| v1.15.9 | >=5.3 | MIT | |
| v1.15.8 | >=5.3 | MIT |
Showing the latest 30 of 137. See every release on Packagist