PHPackages                             srmklive/flash-notifications - 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. srmklive/flash-notifications

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

srmklive/flash-notifications
============================

Elegant Flash Notifications For Laravel

v0.1.5(8y ago)72.4k4MITPHP

Since Oct 29Pushed 8y ago1 watchersCompare

[ Source](https://github.com/srmklive/flash-notifications)[ Packagist](https://packagist.org/packages/srmklive/flash-notifications)[ RSS](/packages/srmklive-flash-notifications/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)DependenciesVersions (6)Used By (0)

Flash Notifications
===================

[](#flash-notifications)

Laravel 5 flash notifications, originally developed after the Laracasts video tutorial : [Elegant Flash Messaging](https://laracasts.com/series/build-project-flyer-with-me/episodes/9) which uses [SweetAlert](http://t4t5.github.io/sweetalert/).

Quick Installation
------------------

[](#quick-installation)

Run the following command to install the package through Composer.

```
composer require srmklive/flash-notifications

```

or in your composer.json file, add `"srmklive/flash-notifications": ">=0.1"` then run

```
composer update

```

Once this operation is complete, simply add both the service provider and facade classes to your project's `config/app.php` file:

#### Service Provider

[](#service-provider)

```
'Srmklive\FlashAlert\FlashAlertServiceProvider',  // Laravel 5.0
Srmklive\FlashAlert\FlashAlertServiceProvider::class, // Laravel 5.1 or greater
```

#### Facade

[](#facade)

```
'FlashAlert' => 'Srmklive\FlashAlert\Facades\FlashAlert', // Laravel 5.0
'FlashAlert' => Srmklive\FlashAlert\Facades\FlashAlert::class,  // Laravel 5.1 or greater
```

#### Publish Configuration &amp; Views

[](#publish-configuration--views)

```
php artisan vendor:publish

```

Usage
-----

[](#usage)

Simply call on `FlashAlert` to set your desired flash notification. There are a number of methods to assign different levels of priority (info, success, warning, and error).

#### Success

[](#success)

```
FlashAlert::success('Success', 'This is a success message.');
```

#### Info

[](#info)

```
FlashAlert::info('Info', 'This is an info message.');
```

#### Warning

[](#warning)

```
FlashAlert::warning('Warning', 'This is a warning message.');
```

#### Error

[](#error)

```
FlashAlert::error('Error', 'This is an error message.');
```

### Rendering

[](#rendering)

To render your flash notifications in your view, simply include the view partial in your master layout. Also add **@yield('styles')** &amp; **yield('scripts')** in your master layout:

```
@include('flashalert::alert')
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

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 ~168 days

Total

5

Last Release

3181d ago

### Community

Maintainers

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

---

Top Contributors

[![srmklive](https://avatars.githubusercontent.com/u/839335?v=4)](https://github.com/srmklive "srmklive (11 commits)")

### Embed Badge

![Health badge](/badges/srmklive-flash-notifications/health.svg)

```
[![Health](https://phpackages.com/badges/srmklive-flash-notifications/health.svg)](https://phpackages.com/packages/srmklive-flash-notifications)
```

###  Alternatives

[spatie/laravel-feed

Generate rss feeds

9743.6M28](/packages/spatie-laravel-feed)

PHPackages © 2026

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