victorycodedev / toastkit
Rich, customizable native toast notifications for NativePHP Mobile.
Package info
github.com/victorycodedev/toastkit
Type:nativephp-plugin
pkg:composer/victorycodedev/toastkit
Requires
- php: ^8.4
- nativephp/mobile: ^4.7
Requires (Dev)
- pestphp/pest: ^4.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-16 10:28:47 UTC
README
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, andneutral. - 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
- Creating toasts
- Styling
- Icons and custom SVGs
- Presentations and animation
- Updates and progress
- Unique toasts
- Presets
- Exceptions
- Actions
- Events
- Queue, stack, and dismissal
- JavaScript usage
- Examples
- Testing
- Compatibility and permissions
- API reference
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.