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

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

voorhof/flash
=============

A simple flash message service for Laravel applications, using Bootstrap alerts

v1.0.3(3mo ago)0386[2 PRs](https://github.com/voorhof/flash/pulls)1MITPHPPHP ^8.3CI passing

Since Jul 24Pushed 1mo agoCompare

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

READMEChangelog (4)Dependencies (4)Versions (6)Used By (1)

Flash Message
=============

[](#flash-message)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f36f8dfb45c437ad8790a920bd3dc466e01d1662520552e0a5d71fa0e79ae6c5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f766f6f72686f662f666c6173682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/voorhof/flash)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/ebb96cfb7f88102408b5b7fd0e0271307b903ef81c2c94a80f325ea94ebe576c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f766f6f72686f662f666c6173682f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d6173746572266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/voorhof/flash/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/8ef35043ebe27e5ea65f0772df35b693cd66e5d84ea8843fb5822702f3181668/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f766f6f72686f662f666c6173682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/voorhof/flash)

A simple, elegant flash messaging package for Laravel applications, using [Bootstrap alerts](https://getbootstrap.com/docs/5.3/components/alerts/) as the view.

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

[](#installation)

You can install the package via composer:

```
composer require voorhof/flash
```

The package will automatically register its service provider.
You can publish the configuration file with:

```
php artisan vendor:publish --provider="Voorhof\Flash\FlashServiceProvider" --tag="flash-config"
```

You can publish the views with:

```
php artisan vendor:publish --provider="Voorhof\Flash\FlashServiceProvider" --tag="flash-views"
```

Usage
-----

[](#usage)

```
use Voorhof\Flash\Facades\Flash;

// Flash a success message
Flash::success('Item created successfully!');

// Flash a warning message
Flash::warning('Please review your input.');

// Flash a danger/error message
Flash::danger('An error occurred!');

// Flash an info message
Flash::info('Here is some information.');

```

In your Blade template, include the flash message component:

```
@include('flash::flash')

```

Credits
-------

[](#credits)

- [David Carton](https://github.com/voorhof)
- [All Contributors](https://github.com/voorhof/cms/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance86

Actively maintained with recent releases

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 74.1% 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 ~67 days

Total

4

Last Release

97d ago

PHP version history (2 changes)v1.0.0PHP ^8.2

v1.0.3PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/023d7d75f1ff45ef9d7623ad729a06019d40eebd1e11a59d4f4fab6baffae267?d=identicon)[Voorhof](/maintainers/Voorhof)

---

Top Contributors

[![voorhof](https://avatars.githubusercontent.com/u/201749104?v=4)](https://github.com/voorhof "voorhof (20 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (2 commits)")

---

Tags

alertsbootstrapflash-messageslaravellaravel-packagelaravelbladeflashbootstrapalert

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[robsontenorio/mary

Gorgeous UI components for Livewire powered by daisyUI and Tailwind

1.5k454.7k15](/packages/robsontenorio-mary)[stijnvanouplines/blade-country-flags

A package to easily make use of country flags in your Laravel Blade views.

26307.2k6](/packages/stijnvanouplines-blade-country-flags)

PHPackages © 2026

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