PHPFlasher Toastr - An extension for PHPFlasher to integrate Toastr notifications seamlessly in Laravel or Symfony. Enhances UX with elegant, responsive toast messages.
php-flasher/flasher-toastr is a Laravel package for phpflasher toastr - an extension for phpflasher to integrate toastr notifications seamlessly in laravel or symfony. enhances ux with elegant, responsive toast messages..
It currently has 8 GitHub stars and 1.371.401 downloads on Packagist (latest version v2.6.1).
Install it with composer require php-flasher/flasher-toastr.
Discover more Laravel packages by php-flasher
or browse all Laravel packages to compare alternatives.
Last updated
Toastr adapter for PHPFlasher. Elegant toast notifications with full TypeScript support.
composer require php-flasher/flasher-toastr
// Basic usage
toastr('Operation completed successfully!', 'success');
toastr('An error occurred.', 'error');
toastr('Information message.', 'info');
toastr('Warning message.', 'warning');
// With options
toastr('Success message', 'success', [
'timeOut' => 5000,
'positionClass' => 'toast-top-right',
'progressBar' => true,
]);
// Custom notification
toastr('Custom message', 'custom-type');
success(), error(), info(), warning(), flash()timeOut, positionClass, progressBar, closeButton, newestOnToptoastr() helper for quick accessComplete documentation: php-flasher.io