PHPackages                             amjadiqbal/laravel-sonner - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. amjadiqbal/laravel-sonner

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

amjadiqbal/laravel-sonner
=========================

The ultimate Sonner toast notification wrapper for Laravel. Beautiful, stackable, and lightweight notifications for your Blade and Livewire applications.

00PHPCI passing

Since Feb 23Pushed 4mo agoCompare

[ Source](https://github.com/amjadiqbal/laravel-sooner)[ Packagist](https://packagist.org/packages/amjadiqbal/laravel-sonner)[ RSS](/packages/amjadiqbal-laravel-sonner/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Sonner
==============

[](#laravel-sonner)

The ultimate Sonner toast notification wrapper for Laravel. Beautiful, stackable, and lightweight notifications for your Blade and Livewire applications.

[![Social Banner](assets/laravel-sooner.png)](assets/laravel-sooner.png)

[![Packagist Version](https://camo.githubusercontent.com/69505a5fd3984f94a2d62c8cfaa04c9a5cb02fd87e6108a6a23675bca876f4d8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616d6a6164697162616c2f6c61726176656c2d736f6e6e65723f636f6c6f723d306561356539)](https://packagist.org/packages/amjadiqbal/laravel-sonner)[![Packagist Downloads](https://camo.githubusercontent.com/3f2629b3ec90ae0dbc7a3a25fbc0062faa4b961f6756503cc58be0fd985b0b05/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616d6a6164697162616c2f6c61726176656c2d736f6e6e65723f636f6c6f723d323263353565)](https://packagist.org/packages/amjadiqbal/laravel-sonner)[![License](https://camo.githubusercontent.com/de9fc4aa3ef127a3cec002aca055d82074cf6c54f187271baa22903a756b6408/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d3862356366362e737667)](LICENSE)[![CI: Pest](https://camo.githubusercontent.com/a4655dc5723f9cae2d813a43d27a648d7f96a340403cdf040776f71f34678aad/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f616d6a6164697162616c2f6c61726176656c2d736f6e6e65722f706573742e796d6c3f6272616e63683d6d61696e266c6162656c3d434925323028506573742926636f6c6f723d326464346266)](https://github.com/amjadiqbal/laravel-sonner/actions)[![PHP](https://camo.githubusercontent.com/2ab22b1b7648584abb6223714474e7c9ec3027f8852b54b7039984059f519881/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344382e322d3737376262333f6c6f676f3d706870)](#)[![Laravel](https://camo.githubusercontent.com/f6da9cca9d4219df676bf2e580dcbbd29a21c9e7c0f002073f1924c89537fc18/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d313025323025374325323031312d6666326432303f6c6f676f3d6c61726176656c)](#)

SEO
---

[](#seo)

- Modern Laravel Notifications
- Sonner Toast for Blade and Livewire
- Lightweight, stackable, beautiful toasts

SEO Highlights
--------------

[](#seo-highlights)

- Instant, sleek toast UX
- Blade-first, Livewire-friendly
- Promise toasts, durations &amp; positions
- Lightweight + stackable layout

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

[](#installation)

```
composer require amjadiqbal/laravel-sonner
```

Usage
-----

[](#usage)

### Simple

[](#simple)

```
toast('Profile updated!');
```

### Advanced

[](#advanced)

```
toast()
    ->success('Order Shipped')
    ->description('Your order #123 is on the way.')
    ->duration(5000);
```

### Blade Component

[](#blade-component)

Add the component at the end of your layout:

```

```

### Livewire Integration

[](#livewire-integration)

From a Livewire component:

```
public function save()
{
    toast()->success('Saved')->description('Your changes were saved.');
    $this->dispatch('sonner:toast', type: 'success', title: 'Saved', description: 'Your changes were saved.');
}
```

In your layout:

```

window.addEventListener('sonner:toast', function(e){
  const d = e.detail || {};
  window.Sonner[d.type || 'toast'](d.title || '', { description: d.description || '' });
});

```

### Promise

[](#promise)

```
Ping
```

Configuration
-------------

[](#configuration)

- position: top-left, top-right, top-center, bottom-left, bottom-right, bottom-center
- theme: system, light, dark
- duration: milliseconds
- dismissible: true/false

Testing
-------

[](#testing)

```
composer install
vendor/bin/pest
```

License
-------

[](#license)

MIT

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance52

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity12

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a7bf302435a7ec2ff19aa5995f1baf92d6d0a4dcafbced1f3e8609fa848a4e6e?d=identicon)[amjadiqbal](/maintainers/amjadiqbal)

---

Top Contributors

[![amjadiqbal](https://avatars.githubusercontent.com/u/36040604?v=4)](https://github.com/amjadiqbal "amjadiqbal (7 commits)")

### Embed Badge

![Health badge](/badges/amjadiqbal-laravel-sonner/health.svg)

```
[![Health](https://phpackages.com/badges/amjadiqbal-laravel-sonner/health.svg)](https://phpackages.com/packages/amjadiqbal-laravel-sonner)
```

###  Alternatives

[maize-tech/laravel-email-domain-rule

Laravel Email Domain Rule

612.0k](/packages/maize-tech-laravel-email-domain-rule)[sarfraznawaz2005/noty

Laravel package to incorporate noty flash notifications into laravel.

324.5k](/packages/sarfraznawaz2005-noty)

PHPackages © 2026

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