PHPackages                             roksta/toast - 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. roksta/toast

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

roksta/toast
============

Toastr notifications in laravel

v1.3.0(6y ago)32.1k—8.3%MITPHPPHP &gt;=5.4.0

Since Oct 27Pushed 6y ago1 watchersCompare

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

READMEChangelog (7)DependenciesVersions (9)Used By (0)

Toast
=====

[](#toast)

Simple toastr notifications for laravel

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

[](#installation)

Install this package via composer

```
    composer require roksta/toast
```

Laravel auto-discovery will find the required service providers and aliases.

#### [Toastr](https://github.com/CodeSeven/toastr)

[](#toastr)

Toastr is enabled by default via CDN.

Run

```
php artisan vendor:publish --provider="Roksta\Toastr\ToastrServiceProvider"
```

to publish the package view in your resources/assets/vendor/roksta/toastr.blade.php

Add `@include('vendor.roksta.toastr')` in your main view, under your jQuery file import eg,

```
    >

        @include('vendor.roksta.toastr')

```

Use
---

[](#use)

Use the helper function `toast()` to make the default notifiers.

```
    toast()->success('message', 'title');
    toast()->info('message', 'title');
    toast()->warning('message', 'title');
    toast()->error('message', 'title');
```

You may specify all the other options dictated by [Toastr](https://github.com/CodeSeven/toastr) by adding the options method to your toast.

```
    toast()->success('message', 'title')->options([
        'timeOut' => 5000,
        'closeButton' => 1,
        'closeHtml' => ''
    ]);
```

*Note that for boolean values such as `closeButton => true` should be expressed as 0 for false or 1 for true*

### Licence

[](#licence)

The package is provided under the MIT License.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 86.7% 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 ~154 days

Recently: every ~38 days

Total

8

Last Release

2407d ago

Major Versions

v0.1 → v1.0.02017-04-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/dd09ef96b0cad07f317de336c5187435d45d9a46b985a79b4b0b2e508b9ff64e?d=identicon)[sam\_roksta](/maintainers/sam_roksta)

---

Top Contributors

[![roksta21](https://avatars.githubusercontent.com/u/7338127?v=4)](https://github.com/roksta21 "roksta21 (13 commits)")[![mbuthias21-lgtm](https://avatars.githubusercontent.com/u/247016240?v=4)](https://github.com/mbuthias21-lgtm "mbuthias21-lgtm (2 commits)")

---

Tags

notificationsalertlaravel-notifications

### Embed Badge

![Health badge](/badges/roksta-toast/health.svg)

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

###  Alternatives

[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[thomasjohnkane/snooze

Schedule future notifications and reminders in Laravel

9321.5M2](/packages/thomasjohnkane-snooze)[paragraph1/php-fcm

PHP application server for google firebase cloud messaging (FCM)

1991.2M10](/packages/paragraph1-php-fcm)[alymosul/exponent-server-sdk-php

Server-side library for working with Expo push notifications using PHP

1541.5M14](/packages/alymosul-exponent-server-sdk-php)[kartik-v/yii2-widget-growl

A widget to generate growl based notifications using bootstrap-growl plugin (sub repo split from yii2-widgets)

384.2M14](/packages/kartik-v-yii2-widget-growl)[kartik-v/yii2-widget-alert

A widget to generate alert based notifications using bootstrap-alert plugin (sub repo split from yii2-widgets)

284.1M24](/packages/kartik-v-yii2-widget-alert)

PHPackages © 2026

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