jansuchanek / nnotify
Animated toast notifications for Nette — Bootstrap toasts with slide-in animations and auto-dismiss
v1.1.0
2026-03-20 14:34 UTC
Requires
- php: >=8.2
- latte/latte: ^3.0
- nette/application: ^3.2
- nette/di: ^3.2
README
Animated toast notifications for Nette Framework — replaces flash messages with beautiful, stackable toasts.
Features
- 🔔 Toast Notifications — Success, error, warning, info types
- ✨ Animations — Slide-in with auto-dismiss
- 📦 Nette Component —
{control toasts}drop-in replacement for flash messages - ⏱️ Auto-dismiss — Configurable timeout
Installation
composer require jansuchanek/nnotify
Configuration
extensions: notify: NNotify\DI\NNotifyExtension
Usage
In your presenter:
#[Inject] public ToastControlFactory $toastFactory; protected function createComponentToasts(): ToastControl { return $this->toastFactory->create(); }
In your Latte template (replaces {snippet flashes}...{/snippet}):
{control toasts}
Requirements
- PHP >= 8.2
- Nette Application ^3.2
- Latte ^3.1
License
MIT