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.
- 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.
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.
Read the complete documentation at viqecodes.com/opensource/toastkit.
See the getting started and installation guide.
use Victorycodedev\ToastKit\Facades\Toast;
Toast::success('Changes saved')
->icon('check')
->show();- 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
Report bugs, request features, or ask for help through the GitHub issue tracker.
Please see the contributing guide.
ToastKit is open-source software released under the MIT License.