The foundational PHP library for PHPFlasher, enabling the creation of framework-agnostic flash notifications. Ideal for building custom integrations or for use in PHP projects.
php-flasher/flasher is a Laravel package for the foundational php library for phpflasher, enabling the creation of framework-agnostic flash notifications. ideal for building custom integrations or for use in php projects..
It currently has 63 GitHub stars and 4.664.290 downloads on Packagist (latest version v2.6.1).
Install it with composer require php-flasher/flasher.
Discover more Laravel packages by php-flasher
or browse all Laravel packages to compare alternatives.
Last updated
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