PHPackages                             rukhsar/sweet-notify - 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. [Templating &amp; Views](/categories/templating)
4. /
5. rukhsar/sweet-notify

ActiveLibrary[Templating &amp; Views](/categories/templating)

rukhsar/sweet-notify
====================

A simple laravel package to show Sweet Alert notifications in blade templates.

v1.0(9y ago)1144MITJavaScriptPHP &gt;=5.4.0

Since Dec 5Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Rukhsar/laravel-sweetnotify)[ Packagist](https://packagist.org/packages/rukhsar/sweet-notify)[ RSS](/packages/rukhsar-sweet-notify/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Laravel SweetNotify
===================

[](#laravel-sweetnotify)

Add Sweet Alert notifications to Laravel application with ease.

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

[](#installation)

Install using composer

```
composer require rukhsar/sweet-notify

```

After installing this package you have to add the service provider for this package to your `config/app.php` .

```
Rukhsar\SweetNotify\SweetNotifyServiceProvider::class
```

Copy the required assets by using

```
php artisan vendor:publish --tag=sweetnotify

```

This will copy the `sweetalert.css` and `sweetalert.js` to your public/css and public/js.

Then in your master view or layout add

```

```

and the JS script tag before your ``

```

```

Include the SweetNotify template in your main view or layout file right after the script tag above.

```
    @include('SweetNotify::sweetnotify')
```

Usage
-----

[](#usage)

You can use SweetNotify notifications in you controllers, events and jobs. But I prefer to use them in controller just before redirecting to a view.

Following methods are available to use.

```
sweet('Title','Your Message');

sweet()->error('Title','Your Message');

sweet()->success('Title','Your Message');

sweet()->overlay('Title','Your Message');
```

### Issues

[](#issues)

If you have any question or issue, please open an Issue and I will try to fix it as soon as possible.

### Thanks to

[](#thanks-to)

[Sweet Alert - http://t4t5.github.io/sweetalert/](http://t4t5.github.io/sweetalert/)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3494d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9365770?v=4)[Rukhsar Manzoor ⚡️](/maintainers/Rukhsar)[@Rukhsar](https://github.com/Rukhsar)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/rukhsar-sweet-notify/health.svg)

```
[![Health](https://phpackages.com/badges/rukhsar-sweet-notify/health.svg)](https://phpackages.com/packages/rukhsar-sweet-notify)
```

###  Alternatives

[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135212.4k7](/packages/statamic-rad-pack-runway)[ycs77/inertia-laravel-ssr-head

Simple SSR Head for Inertia Laravel

3413.0k](/packages/ycs77-inertia-laravel-ssr-head)

PHPackages © 2026

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