php-flasher/flasher
php-flasher/flasher adds elegant flash notifications to PHP apps, with Laravel integration. Configure multiple notifiers, queue messages, and display them easily in templates. Supports popular JS libraries and customizable themes for consistent UX.
Framework-agnostic flash notifications library for PHP. Build custom integrations or use with any PHP project.
composer require php-flasher/flasher
// Success notification
flash('Operation completed successfully!', 'success');
// Error notification
flash('An error occurred.', 'error');
// With options
flash('Profile updated!', 'success', [
'timeout' => 5000,
'position' => 'top-right',
]);
// With translation
flash('Welcome back!', 'info', [
'translate' => true,
'locale' => 'en',
]);
Complete documentation: php-flasher.io
How can I help you explore Laravel packages today?