PHPackages                             ken/sweetanimation - 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. ken/sweetanimation

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

ken/sweetanimation
==================

simple alert notifications with sweet alert and animate.css for laravel

1.0.0(9y ago)019MITPHPPHP &gt;=5.4.0

Since Nov 8Pushed 9y ago1 watchersCompare

[ Source](https://github.com/kenhyuwa/sweetanimation)[ Packagist](https://packagist.org/packages/ken/sweetanimation)[ RSS](/packages/ken-sweetanimation/feed)WikiDiscussions master Synced 3w ago

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

[![Notify](https://camo.githubusercontent.com/fa50bff4afb24b3c4bc2a3b1bac24fd2ccc51c4ff4216f03d2f83a19a5964d1e/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f73332e636f6465636f757273652e636f6d2f6769746875622f62616e6e6572732f6e6f746966792e706e67)](https://camo.githubusercontent.com/fa50bff4afb24b3c4bc2a3b1bac24fd2ccc51c4ff4216f03d2f83a19a5964d1e/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f73332e636f6465636f757273652e636f6d2f6769746875622f62616e6e6572732f6e6f746966792e706e67)

> This is Flexible Notification customize from Codecourse/Notify. Thanks to Alex Garrett.

Install
-------

[](#install)

Using Composer

```
composer require ken/sweetanimation

```

Add the service provider to `config/app.php`

```
Ken\Sweetanimation\Provider\SpiderServiceProvider::class,
```

Optionally include the Facade in `config/app.php` if you'd like.

```
'Sweet' => Ken\Sweetanimation\Facades\Sweetanimation::class,
```

> Note, there is a animation() function available, so unless you really want to use the Facade, there's no need to include it.

Usage
-----

[](#usage)

### Basic

[](#basic)

From your application, call the `flash` method with a message and type.

```
animation()->flash('Welcome back!', 'success');
```

Within a view, you can now check if a flash message exists and output it.

```
@if (animation()->ready())

        {{ animation()->message() }}

@endif
```

> Notify is front-end framework agnostic, so you're free to easily implement the output however you choose.

### Options

[](#options)

You can pass additional options to the `flash` method, which are then easily accessible within your view.

```
animation()->flash('Welcome back!', 'success', [
    'timer' => 3000,
    'text' => 'It\'s really great to see you again',
    'animate' => 'flash'
]);
```

Then, in your view.

```
@if (animation()->ready())

        swal({
            title: "{!! animation()->message() !!}",
            text: "{!! animation()->option('text') !!}",
            type: "{{ animation()->type() }}",
            @if (animation()->option('timer'))
                timer: {{ animation()->option('timer') }},
                showConfirmButton: false,
            @endif
            @if (animation()->option('animate'))
                animation: false,
                customClass: "animated {!! animation()->option('animate') !!}",
                showConfirmButton: true // optional
            @endif
        });

@endif
```

[![SweetAlert example](https://camo.githubusercontent.com/4abd53841ca76c2567e4504e1527f1fac034a70301ea6fe5f79db1abbdb17f09/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f73332e636f6465636f757273652e636f6d2f6769746875622f6e6f746966792f7377616c2d6578616d706c652e706e67)](https://camo.githubusercontent.com/4abd53841ca76c2567e4504e1527f1fac034a70301ea6fe5f79db1abbdb17f09/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f73332e636f6465636f757273652e636f6d2f6769746875622f6e6f746966792f7377616c2d6578616d706c652e706e67)

> The above example uses SweetAlert, but the flexibily of SweetAlert and Animate.css means you can easily use it with any JavaScript alert solution.

Issues and contribution
-----------------------

[](#issues-and-contribution)

Just submit an issue or pull request through GitHub. Thanks!

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

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

3520d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/95446e8ca567db045101811187bc6c73a34c4a55ef794a34ab99eab75102e7df?d=identicon)[kenhyuwa](/maintainers/kenhyuwa)

---

Top Contributors

[![kenhyuwa](https://avatars.githubusercontent.com/u/17788063?v=4)](https://github.com/kenhyuwa "kenhyuwa (3 commits)")

### Embed Badge

![Health badge](/badges/ken-sweetanimation/health.svg)

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

###  Alternatives

[propaganistas/laravel-disposable-email

Disposable email validator

6012.9M7](/packages/propaganistas-laravel-disposable-email)[illuminate/mail

The Illuminate Mail package.

5910.4M475](/packages/illuminate-mail)[laravel-notification-channels/apn

Apple APN Push Notification Channel

2022.1M6](/packages/laravel-notification-channels-apn)[illuminate/notifications

The Illuminate Notifications package.

483.0M1.1k](/packages/illuminate-notifications)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

252143.0k](/packages/erag-laravel-disposable-email)

PHPackages © 2026

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