PHPackages                             nativeblade/toast - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. nativeblade/toast

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

nativeblade/toast
=================

Toast notification component for NativeBlade

v1.0.2(2mo ago)03MITCSSPHP ^8.3

Since Apr 7Pushed 2mo agoCompare

[ Source](https://github.com/NativeBlade/nativeblade-toast)[ Packagist](https://packagist.org/packages/nativeblade/toast)[ RSS](/packages/nativeblade-toast/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

NativeBlade Toast
=================

[](#nativeblade-toast)

Toast notification shell component for [NativeBlade](https://github.com/user/nativeblade). Renders outside the WebView — no flicker during page transitions.

Installation
------------

[](#installation)

```
composer require nativeblade/toast
```

That's it. Run `php artisan nativeblade:dev` and the component is synced automatically.

Usage
-----

[](#usage)

### Blade (Livewire directive)

[](#blade-livewire-directive)

```

    Save

    Delete

    Validate

```

### Inline (onclick)

[](#inline-onclick)

```

    Save

```

### From PHP (NativeResponse)

[](#from-php-nativeresponse)

```
use NativeBlade\Facades\NativeBlade;

// Show toast after a Livewire action
NativeBlade::response()->alert('Saved!')->toResponse();
```

### Types

[](#types)

TypeColor`info`Gray`success`Green`error`Red`warning`Yellow### Options

[](#options)

OptionTypeDefaultDescription`message`string`''`Text to display`type`string`'info'``info`, `success`, `error`, `warning``duration`int`3000`Auto-hide delay in millisecondsHow It Works
------------

[](#how-it-works)

This is a **shell component** — it renders outside the WebView in the native Tauri shell.

`wire:nb-bridge="toast"` triggers a click handler that sends a message to the parent shell via `postMessage`. The bridge looks up the `toast` component in the registry and calls its `render()` function. The toast appears as a floating element in the parent window, outside the iframe.

License
-------

[](#license)

MIT

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance87

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

64d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/45333690?v=4)[Jefferson T.S](/maintainers/jeffleyd)[@jeffleyd](https://github.com/jeffleyd)

---

Top Contributors

[![jeffleyd](https://avatars.githubusercontent.com/u/45333690?v=4)](https://github.com/jeffleyd "jeffleyd (6 commits)")

### Embed Badge

![Health badge](/badges/nativeblade-toast/health.svg)

```
[![Health](https://phpackages.com/badges/nativeblade-toast/health.svg)](https://phpackages.com/packages/nativeblade-toast)
```

###  Alternatives

[directorytree/anonymize

Anonymize sensitive model data with realistic fake data using Faker

10811.5k](/packages/directorytree-anonymize)[sciphp/numphp

PHP library for scientific computing.

6621.9k](/packages/sciphp-numphp)[mnshankar/linear-regression

PHP package for computation of simple linear regression parameters

2423.7k](/packages/mnshankar-linear-regression)[mehedijaman/laravel-zkteco

Connect any zkteco fingerprint attendance machine to laravel application with no effort.

524.5k](/packages/mehedijaman-laravel-zkteco)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
