Notification Studio
Design your perfect notification and see the code instantly
Quick Installation
Get up and running in less than a minute
composer require php-flasher/flasher-laravel
composer require php-flasher/flasher-symfony
Why Choose PHPFlasher?
Everything you need to add beautiful notifications to your PHP applications
Easy to Use
- Simple one-line code to show notifications
- Works right out of the box - zero configuration
- Intuitive, consistent API across libraries
- Customize notifications with ease
Flexible & Powerful
- Multiple notification libraries in one package
- Session and direct rendering options
- Customizable positions, animations, and styles
- Flash messages across redirects
Framework Integration
- Native Laravel integration with facades
- Seamless Symfony support with bundle
- Livewire real-time notifications
- Inertia.js SPA support
Developer Experience
- Full IDE support with autocompletion
- Extensive documentation with examples
- TypeScript support for JavaScript usage
- Well-tested, production-ready code
Performance Optimized
- Lightweight core with lazy-loading
- Only loads required JavaScript libraries
- Optimized asset loading strategies
- Minimal framework overhead
Highly Customizable
- Easily style notifications to match your brand
- Configure default settings globally
- Override options per notification
- Create custom themes and templates
Choose Your Preferred Library
PHPFlasher integrates with popular JavaScript notification libraries
Toastr.js
Simple toast notifications for web applications. Clean, elegant and customizable.
SweetAlert2
Beautiful, responsive, customizable alert dialogs with interactive elements.
Noty
Highly customizable notification library with multiple positions and animations.
Notyf
Minimalist toast notifications with a clean design and smooth animations.
Simple Implementation
Just a few lines of code to get started
<?php
namespace App\Http\Controllers;
class ProfileController
{
public function update()
{
// Update user profile logic
// Show success notification
flash()->success('Profile updated successfully!');
// Or add a title
flash()->success('Your changes have been saved.', 'Profile Updated');
// Or add a title and options
flash()
->option('timeout', 5000)
->option('position', 'top-right')
->success('Changes saved with custom settings');
// Change notification options
flash()->options([
'timeout' => 5000,
'position' => 'top-right'
])->success('Changes saved with custom settings');
return back();
}
}
// Form submission example
document.getElementById('contact-form').addEventListener('submit', async function(e) {
e.preventDefault();
try {
const response = await submitForm(this);
if (response.success) {
// Show success notification
flasher.success('Your message has been sent!', 'Thank You');
} else {
// Show error notification
flasher.error('Please check your form inputs', 'Error');
}
} catch (error) {
// Show error notification with details
flasher.error('Server error, please try again later.', 'Error');
console.error(error);
}
});
Loved by Developers
See what others are saying about PHPFlasher
"Honestly wasn't expecting much, but wow! Saved me hours of headaches with our notification system. Just dropped it in and it worked first try. No more fighting with JS libraries!"

"We were using Toastr directly but it was a mess maintaining it. Switched to PHPFlasher last sprint and it just works. The Livewire integration is a huge time saver too. Only nitpick is I wish the docs had more examples."

"Been using PHPFlasher in our Symfony app for 6+ months. Had an issue with modal stacking, reached out on GitHub and got a fix in like 2 days! That kind of support is rare for open source. Huge thanks to @younes!"

Join Our Growing Community
Help us make PHPFlasher even better
Ready to Enhance Your PHP Applications?
Add beautiful notifications to your Laravel or Symfony applications in minutes with PHPFlasher.