PHPFlasher - A powerful & easy-to-use package for adding flash messages to Laravel or Symfony projects. Provides feedback to users, improves engagement & enhances user experience. Intuitive design for beginners & experienced developers. A reliable, flexible solution.
php-flasher/flasher-notyf is a Laravel package for phpflasher - a powerful & easy-to-use package for adding flash messages to laravel or symfony projects. provides feedback to users, improves engagement & enhances user experience. intuitive design for beginners & experienced developers. a reliable, flexible solution..
It currently has 9 GitHub stars and 1.237.778 downloads on Packagist (latest version v2.6.1).
Install it with composer require php-flasher/flasher-notyf.
Discover more Laravel packages by php-flasher
or browse all Laravel packages to compare alternatives.
Last updated
Notyf adapter for PHPFlasher. Lightweight and modern toast notifications.
composer require php-flasher/flasher-notyf
// Basic usage
notyf('Operation completed successfully!', 'success');
notyf('An error occurred.', 'error');
notyf('Information message.', 'info');
notyf('Warning message.', 'warning');
// With options
notyf('Success message', 'success', [
'duration' => 4000,
'position' => [
'x' => 'right',
'y' => 'top',
],
]);
// Custom notification
notyf('Custom message', 'custom-type');
success(), error(), info(), warning(), flash()duration, position, ripple, idnotyf() helper for quick access// Success notification
notyf($message, 'success', $options, $title);
// Error notification
notyf($message, 'error', $options, $title);
// Info notification
notyf($message, 'info', $options, $title);
// Warning notification
notyf($message, 'warning', $options, $title);
// Custom notification type
notyf($message, $type, $options, $title);
// With options
notyf($message, 'success', [
'duration' => 4000,
'position' => [
'x' => 'right',
'y' => 'top',
],
], $title);
Complete documentation: php-flasher.io