PHPackages                             laralabs/toaster - 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. laralabs/toaster

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

laralabs/toaster
================

Easily generate and bind message JSON data to the view for use in frontend toast components

5.0.2(1y ago)561.9k↓50%4[1 PRs](https://github.com/Laralabs/toaster/pulls)MITPHPPHP ^8.1CI passing

Since Jan 29Pushed 1y ago1 watchersCompare

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

READMEChangelogDependencies (8)Versions (14)Used By (0)

 [![](https://camo.githubusercontent.com/b6f9711ac97b1a3cfac39abbd6c8390284ad03c694085e7fef974eed5f616444/687474703a2f2f646f63732e6c6172616c6162732e756b2f746f61737465722f696d616765732f746f61737465725f6c6f676f5f746578742e706e67)](https://camo.githubusercontent.com/b6f9711ac97b1a3cfac39abbd6c8390284ad03c694085e7fef974eed5f616444/687474703a2f2f646f63732e6c6172616c6162732e756b2f746f61737465722f696d616765732f746f61737465725f6c6f676f5f746578742e706e67)

[![Stable Build](https://camo.githubusercontent.com/008fb8878cf398139856da56edd1302f2e958a52d0651d84d5a2a17f6c4f80c1/68747470733a2f2f706f7365722e707567782e6f72672f6c6172616c6162732f746f61737465722f76657273696f6e)](https://packagist.org/packages/laralabs/toaster)[![CI Status](https://github.com/Laralabs/toaster/actions/workflows/.github-actions.yml/badge.svg)](https://github.com/Laralabs/toaster/actions)[![StyleCI](https://camo.githubusercontent.com/d3d48173f99f3a2d2ca4025d60ca049848cd9b422fce26a4af5675bc92bc5c1f/68747470733a2f2f7374796c6563692e696f2f7265706f732f3130333130393930352f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/103109905)[![](https://camo.githubusercontent.com/cbaabfddec9b4136583bbae2ce3b61bb4e2fb0c860cf5c0d9991f97bd0ab1381/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f4c6172616c6162732f746f61737465722f6261646765732f6770612e737667)](https://codeclimate.com/github/Laralabs/toaster)[![](https://camo.githubusercontent.com/bc65480985701682470204a525f2f49a28fcb9290c30229c39e0fc05ab22c302/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f32346431636132346265353961343935323731362f746573745f636f766572616765)](https://codeclimate.com/github/Laralabs/toaster/test_coverage)[![](https://camo.githubusercontent.com/ff30bb394b744f950c8d8cbeb89a9f1f0d960e2bf6e3965883ed733cfcb96b51/68747470733a2f2f636f6465636f762e696f2f67682f4c6172616c6162732f746f61737465722f6272616e63682f6d61737465722f67726170682f62616467652e7376673f746f6b656e3d4c5a3353494f3436434e)](https://codecov.io/gh/Laralabs/toaster)

The toaster package for Laravel provides a quick 'n' easy method for creating toast messages and binding the data to your view as a JS variable. You can then access them in your favourite JS component or use laralabs-vue-toaster, built for this package.

```
composer require laralabs/toaster

```

Documentation
-------------

[](#documentation)

Full documentation can be found at the link below:

[Toaster Documentation](https://docs.laralabs.uk/toaster)

Preview
-------

[](#preview)

> Example of Toaster being used with [laralabs-vue-toaster](https://github.com/Laralabs/vue-toaster), this setup is included within the documentation.

 [![](https://camo.githubusercontent.com/9bacbd422a52b4f79468261a97048b15917fef9bc15f6afe18ef21c74d85be39/68747470733a2f2f646f63732e6c6172616c6162732e756b2f746f61737465722f696d616765732f746f61737465726578616d706c65332e676966)](https://camo.githubusercontent.com/9bacbd422a52b4f79468261a97048b15917fef9bc15f6afe18ef21c74d85be39/68747470733a2f2f646f63732e6c6172616c6162732e756b2f746f61737465722f696d616765732f746f61737465726578616d706c65332e676966)

Demo
----

[](#demo)

A live demo is available [here](https://toaster.laralabs.uk)

Support
-------

[](#support)

Please raise an issue on GitHub if there is a problem.

License
-------

[](#license)

This is open-sourced software licensed under the [MIT License](http://opensource.org/licenses/MIT).

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance43

Moderate activity, may be stable

Popularity31

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 98.6% 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 ~287 days

Recently: every ~399 days

Total

10

Last Release

446d ago

Major Versions

2.0.1 → 3.0.02018-05-27

3.0.3 → 4.0.02020-10-13

4.0.1 → 5.0.02023-05-01

PHP version history (5 changes)2.0.1PHP &gt;=7.0

3.0.0PHP &gt;=7.1

4.0.0PHP ^7.3

4.0.1PHP ^7.3|^8.0

5.0.0PHP ^8.1

### Community

Maintainers

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

---

Top Contributors

[![clnt](https://avatars.githubusercontent.com/u/19330442?v=4)](https://github.com/clnt "clnt (141 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/laralabs-toaster/health.svg)

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

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[illuminate/view

The Illuminate View package.

13044.9M1.7k](/packages/illuminate-view)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[moonshine/moonshine

Laravel administration panel

1.3k217.1k59](/packages/moonshine-moonshine)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

703141.0k7](/packages/tallstackui-tallstackui)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)

PHPackages © 2026

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