jansuchanek/nnotify

Animated toast notifications for Nette — Bootstrap toasts with slide-in animations and auto-dismiss

Maintainers

Package info

github.com/JanSuchanek/nnotify

pkg:composer/jansuchanek/nnotify

Statistics

Installs: 2

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

v1.1.0 2026-03-20 14:34 UTC

This package is auto-updated.

Last update: 2026-04-20 15:35:25 UTC


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