php-flasher / flasher-notyf
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.
Fund package maintenance!
v2.5.0
2026-03-07 18:31 UTC
Requires
- php: >=8.2
- php-flasher/flasher: ^2.5.0
- 2.x-dev
- v2.5.0
- v2.4.0
- v2.3.0
- v2.2.2
- v2.2.1
- v2.2.0
- v2.1.6
- v2.1.5
- v2.1.4.x-dev
- v2.1.3
- v2.1.2
- v2.1.1
- v2.1.0
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- 1.x-dev
- v1.15.14
- v1.15.13
- v1.15.12
- v1.15.11
- v1.15.10
- v1.15.9
- v1.15.8
- v1.15.7
- v1.15.6
- v1.15.5
- v1.15.4
- v1.15.3
- v1.15.2
- v1.15.1
- v1.15.0
- v1.14.1
- v1.14.0
- v1.13.1
- v1.13.0
- v1.12.1
- v1.12.0
- v1.11.0
- v1.10.6
- v1.10.5
- v1.10.4
- v1.10.3
- v1.10.2
- v1.10.1
- v1.10.0
- v1.9.2
- v1.9.1
- v1.9.0
- v1.8.2
- v1.8.1
- v1.8.0
- v1.7.0
- v1.6.3
- v1.6.2
- v1.6.1
- v1.6.0
- v1.5.2
- v1.5.1
- v1.5.0
- v1.4.2
- v1.4.1
- v1.4.0
- v1.3.1
- v1.3.0
- v1.2.0
- v1.1.1
- v1.1.0
- v1.0.8
- v1.0.7
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- v0.9.8
- v0.9.7
- v0.9.6
- v0.9.5
- v0.9.4
- v0.9.3
- v0.9.2
- v0.9.1
- v0.9.0
- v0.8.0
- v0.7.0
- v0.6.3
- v0.6.2
- v0.6.1
- v0.6.0
- v0.5.0
- v0.4.17
- v0.4.16
- v0.4.15
- v0.4.14
- v0.4.13
- v0.4.12
- v0.4.11
- v0.4.10
- v0.4.8
- v0.4.7
- v0.4.6
- v0.4.5
- v0.4.4
- v0.4.3
- v0.4.2
- v0.4.1
- v0.4.0
- v0.3.0
- v0.2.0
- v0.1.18
- v0.1.17
- v0.1.16
- v0.1.15
- v0.1.14
- v0.1.13
- v0.1.12
- v0.1.11
- v0.1.10
- v0.1.9
- v0.1.8
- v0.1.7
- v0.1.6
- v0.1.5
- v0.1.4
- v0.1.3
- v0.1.2
- v0.1.1
- v0.1.0
- dev-main
- dev-dependabot/add-v2-config-file
This package is auto-updated.
Last update: 2026-03-07 19:24:04 UTC
README
Notyf adapter for PHPFlasher. Lightweight and modern toast notifications.
Requirements
- PHP >= 8.2
- PHPFlasher ^2.4.0
Installation
composer require php-flasher/flasher-notyf
Quick Start
// 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');
Features
- Simple API:
success(),error(),info(),warning(),flash() - Notyf Options:
duration,position,ripple,id - Modern Design: Clean, minimal design with smooth animations
- Type Safety: Full PHP type hints and PHPStan support
- Helper Functions: Global
notyf()helper for quick access
Available Methods
// 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);
Documentation
Complete documentation: php-flasher.io