php-flasher / flasher-toastr-symfony
Integrate Toastr's smooth toast notifications into Symfony projects using PHPFlasher. Enhance Symfony applications with Toastr's refined visuals.
Package info
github.com/php-flasher/flasher-toastr-symfony
Type:symfony-bundle
pkg:composer/php-flasher/flasher-toastr-symfony
Fund package maintenance!
v2.5.0
2026-03-07 18:31 UTC
Requires
- php: >=8.2
- php-flasher/flasher-symfony: ^2.5.0
- php-flasher/flasher-toastr: ^2.5.0
- 2.x-dev
- v2.5.0
- v2.4.0
- v2.3.0
- v2.2.2
- v2.2.1
- v2.2.0
- v2.1.6
- v2.1.5
- v2.1.4.x-dev
- v2.1.3
- v2.1.2
- v2.1.1
- v2.1.0
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- 1.x-dev
- v1.15.14
- v1.15.13
- v1.15.12
- v1.15.11
- v1.15.10
- v1.15.9
- v1.15.8
- v1.15.7
- v1.15.6
- v1.15.5
- v1.15.4
- v1.15.3
- v1.15.2
- v1.15.1
- v1.15.0
- v1.14.1
- v1.14.0
- v1.13.1
- v1.13.0
- v1.12.1
- v1.12.0
- v1.11.0
- v1.10.6
- v1.10.5
- v1.10.4
- v1.10.3
- v1.10.2
- v1.10.1
- v1.10.0
- v1.9.2
- v1.9.1
- v1.9.0
- v1.8.2
- v1.8.1
- v1.8.0
- v1.7.0
- v1.6.3
- v1.6.2
- v1.6.1
- v1.6.0
- v1.5.2
- v1.5.1
- v1.5.0
- v1.4.2
- v1.4.1
- v1.4.0
- v1.3.1
- v1.3.0
- v1.2.0
- v1.1.1
- v1.1.0
- v1.0.8
- v1.0.7
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- v0.9.8
- v0.9.7
- v0.9.6
- v0.9.5
- v0.9.4
- v0.9.3
- v0.9.2
- v0.9.1
- v0.9.0
- v0.8.0
- v0.7.0
- v0.6.3
- v0.6.2
- v0.6.1
- v0.6.0
- v0.5.0
- v0.4.17
- v0.4.16
- v0.4.15
- v0.4.14
- v0.4.13
- v0.4.12
- v0.4.11
- v0.4.10
- v0.4.8
- v0.4.7
- v0.4.6
- v0.4.5
- v0.4.4
- v0.4.3
- v0.4.2
- v0.4.1
- v0.4.0
- v0.3.0
- v0.2.0
- v0.1.18
- v0.1.17
- v0.1.16
- v0.1.15
- v0.1.14
- v0.1.13
- v0.1.12
- v0.1.11
- v0.1.10
- v0.1.9
- v0.1.8
- v0.1.7
- v0.1.6
- v0.1.5
- v0.1.4
- v0.1.3
- v0.1.2
- v0.1.1
- v0.1.0
- dev-main
- dev-dependabot/add-v2-config-file
This package is auto-updated.
Last update: 2026-03-07 19:24:05 UTC
README
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