php-notify / notify-symfony-toastr
This package is abandoned and no longer maintained.
The author suggests using the php-flasher/flasher-toastr-symfony package instead.
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-notify/notify-symfony-toastr
Fund package maintenance!
v2.6.1
2026-04-13 08:48 UTC
Requires
- php: >=8.2
- php-flasher/flasher-symfony: ^2.6.1
- php-flasher/flasher-toastr: ^2.6.1
This package is auto-updated.
Last update: 2026-04-13 08:52:03 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