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

ActiveLibrary

orus/flash
==========

A simple php and laravel flash alert package.

2.0(5y ago)03001MITPHPPHP &gt;=7.1.0

Since Jul 17Pushed 5y ago1 watchersCompare

[ Source](https://github.com/OrusInc/flash)[ Packagist](https://packagist.org/packages/orus/flash)[ RSS](/packages/orus-flash/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (5)Dependencies (3)Versions (6)Used By (0)

A simple php and laravel flash alert package
============================================

[](#a-simple-php-and-laravel-flash-alert-package)

this package gives you a simple way to manage alerts into your laravel project. It also works with any php project.

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

[](#installation)

Include the package in your project using composer.

```
composer require orus/flash
```

If you're using a version of laravel prior to 5.5 you need you to include te service provider and the alias in your `config/app.php`.

```
"providers"  =>  [
  ...
  Orus\Flash\Providers\FlashServiceProvider::class,
],

"aliases"  =>  [
  ...
  "Flash"  =>  Orus\Flash\Facades\Flash::class
]
```

Usage
-----

[](#usage)

Before performing your redirect, you can call the `flash()` helper function.

```
Route::post("/login", function() {
  flash("welcome in the matrix");

  return redirect("/profile");
}
```

You can specify the alert type by using the fluent api it offers.

```
flash(); // Flash object.
flash()->default("message") // A default flash alert
flash()->danger("message") // A danger flash alert
flash()->warning("message") // A warning flash alert
flash()->info("message") // An info flash alert
flash()->success("message") // A success flash alert
flash()->default("message")->title("Default") // Set the alert title
flash()->danger("message")->important() // Set the alert as important
flash()->info("message")->options(["key"] => "value") // Add options to the alert
flash("message")->success(); // Or define your message and set the type.
flash()->info("message")->success("message"); // You can chain multiple alerts.
```

It also gives you the ability to set multiple flash alerts.

```
Route::post("/login", function() {
  flash("welcome in the matrix")->default();
  flash("May the code be with you!")->info();

  return redirect("/profile");
}
```

Then you can get a collection of the alerts in your views.

```
{{ flash()->all() }}
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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 ~333 days

Total

5

Last Release

1891d ago

Major Versions

v1.3 → 2.02021-03-10

PHP version history (2 changes)1.0PHP &gt;=5.4.0

1.2PHP &gt;=7.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/10b1cf5043df60555b899cb84480c8bac5f2dd61036ff35107bcec74e6440c0c?d=identicon)[orus](/maintainers/orus)

---

Top Contributors

[![yhcherif](https://avatars.githubusercontent.com/u/6560863?v=4)](https://github.com/yhcherif "yhcherif (6 commits)")[![salioudiabate](https://avatars.githubusercontent.com/u/12444680?v=4)](https://github.com/salioudiabate "salioudiabate (2 commits)")

---

Tags

phplaravelnotificationsflashalert

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[edvinaskrucas/notification

Package for Laravel for helping to manage flash / instant notifications / messages.

520393.9k10](/packages/edvinaskrucas-notification)[novu/novu-laravel

Novu for Laravel

12204.3k](/packages/novu-novu-laravel)[garf/laravel-notifications

Convenient flash notifications

194.0k](/packages/garf-laravel-notifications)[usamamuneerchaudhary/filament-notifier

A powerful notification system for FilamentPHP that handles multi-channel notifications with template management, scheduling, and real-time delivery. Built for developers who need enterprise-grade notifications without the complexity.

321.1k](/packages/usamamuneerchaudhary-filament-notifier)

PHPackages © 2026

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