Search by

victorycodedev / toastkit

victorycodedev

Rich, customizable native toast notifications for NativePHP Mobile.

Package info

github.com/victorycodedev/toastkit

Type:nativephp-plugin

pkg:composer/victorycodedev/toastkit

Statistics

Installs: 690

Dependents: 0

Suggesters: 0

Stars: 8

Open Issues: 2

v1.5.1 2026-11-12 19:10 UTC

README

Fund my work on FLOSSAfrica

ToastKit provides rich, customizable native toast notifications for NativePHP Mobile.

Toasts render as native overlays with Jetpack Compose on Android and SwiftUI on iOS, so they look and feel at home on each platform. No Blade component is required.

Features

  • Five variants: success, error, warning, info, and neutral.
  • Titles, messages, system icons, custom SVG icons, and per-platform icon overrides.
  • Standard, platform-native, and expanding dynamic presentations.
  • Custom colors, typography, opacity, icon sizes, corner radius, padding, and shadow.
  • Entrance and exit animations with configurable direction.
  • Determinate progress and indeterminate loading states.
  • Live sparse updates with content crossfades.
  • Unique keys that prevent duplicate active work.
  • One or two action buttons with attached event data.
  • Whole-toast press, shown, dismissed, and action events.
  • Queue and stack strategies.
  • Swipe, close-control, programmatic, and bulk dismissal.
  • Fluent PHP and JavaScript APIs.
  • NativePHP testing assertions for application tests.

Compatibility

ToastKit 1.x supports PHP 8.4+, NativePHP Mobile 4.7+, Android API 29+, and iOS 18.0+.

ToastKit requires no Android permissions or iOS permission strings and adds no third-party native dependencies.

Documentation

Read the complete documentation at viqecodes.com/opensource/toastkit.

Installation

See the getting started and installation guide.

Quick example

use Victorycodedev\ToastKit\Facades\Toast;

Toast::success('Changes saved')
    ->icon('check')
    ->show();

Feature guides

Support

Report bugs, request features, or ask for help through the GitHub issue tracker.

Contributing

Please see the contributing guide.

License

ToastKit is open-source software released under the MIT License.