PHPackages                             oriceon/toastr-5-laravel - 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. oriceon/toastr-5-laravel

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

oriceon/toastr-5-laravel
========================

Easy toastr notifications for Laravel 5

2.0.0(8y ago)92473.5k↓21.1%243MITPHPPHP &gt;=5.4.0

Since Apr 30Pushed 2y ago4 watchersCompare

[ Source](https://github.com/oriceon/toastr-5-laravel)[ Packagist](https://packagist.org/packages/oriceon/toastr-5-laravel)[ Docs](https://github.com/oriceon/toastr-5-laravel)[ RSS](/packages/oriceon-toastr-5-laravel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (3)

toastr
======

[](#toastr)

Easy [toastr.js](https://github.com/CodeSeven/toastr) notifications for Laravel 5, a ported version of Laravel 4 Toastr by [kamaln7](https://github.com/kamaln7/toastr)

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

[](#installation)

1. Either run `composer require oriceon/toastr-5-laravel` or add `"oriceon/toastr-5-laravel": "dev-master"` to the `require` key in `composer.json` and run `composer install`
2. Add `'Kamaln7\Toastr\ToastrServiceProvider',` to the `providers` key in `config/app.php` (optional for Laravel 5.5)
3. Add `'Toastr'          => 'Kamaln7\Toastr\Facades\Toastr',` to the `aliases` key in `config/app.php` (optional for Laravel 5.5)

Usage
-----

[](#usage)

Include jQuery and [toastr.js](https://github.com/CodeSeven/toastr) in your master view template, and the output of `Toastr::render()` afterwards:

```

{!! Toastr::render() !!}
```

Call one of these methods in your controllers to insert a toast:

- `Toastr::warning($message, $title = null, $options = [])` - add a warning toast
- `Toastr::error($message, $title = null, $options = [])` - add an error toast
- `Toastr::info($message, $title = null, $options = [])` - add an info toast
- `Toastr::success($message, $title = null, $options = [])` - add a success toast
- `Toastr::add($type: warning|error|info|success, $message, $title = null, $options = [])` - add a toast
- **`Toastr::clear()` - clear all current toasts**

### Setting custom Toastr options

[](#setting-custom-toastr-options)

You can set custom options for Toastr. Run:

```
php artisan vendor:publish
```

to publish the config file for Toastr. Then edit `config/toastr.php` and set the `options` array to whatever you want to pass to Toastr. These options are set as the default options and can be overridden by passing an array of options to any of the methods in the **Usage** section.

For a list of available options, see [toastr.js' documentation](https://github.com/CodeSeven/toastr).

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity51

Moderate usage in the ecosystem

Community26

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

2

Last Release

2941d ago

Major Versions

1.0.0 → 2.0.02018-04-30

### Community

Maintainers

![](https://www.gravatar.com/avatar/8a9692bf91992f959404944cecec65e1b68b21491ec3c5642e67e47a836d9ea8?d=identicon)[oriceon](/maintainers/oriceon)

---

Top Contributors

[![oriceon](https://avatars.githubusercontent.com/u/358823?v=4)](https://github.com/oriceon "oriceon (14 commits)")[![kamaln7](https://avatars.githubusercontent.com/u/552075?v=4)](https://github.com/kamaln7 "kamaln7 (9 commits)")[![carlosrgzm](https://avatars.githubusercontent.com/u/1535695?v=4)](https://github.com/carlosrgzm "carlosrgzm (4 commits)")[![jozefbalun](https://avatars.githubusercontent.com/u/8630488?v=4)](https://github.com/jozefbalun "jozefbalun (2 commits)")[![JimmyHowe](https://avatars.githubusercontent.com/u/3468092?v=4)](https://github.com/JimmyHowe "JimmyHowe (2 commits)")[![fgreinus](https://avatars.githubusercontent.com/u/1236785?v=4)](https://github.com/fgreinus "fgreinus (2 commits)")[![piperone](https://avatars.githubusercontent.com/u/351744?v=4)](https://github.com/piperone "piperone (1 commits)")[![royduin](https://avatars.githubusercontent.com/u/1703233?v=4)](https://github.com/royduin "royduin (1 commits)")[![trollderiu](https://avatars.githubusercontent.com/u/216930211?v=4)](https://github.com/trollderiu "trollderiu (1 commits)")

---

Tags

phplaravelnotificationtoastr

### Embed Badge

![Health badge](/badges/oriceon-toastr-5-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/oriceon-toastr-5-laravel/health.svg)](https://phpackages.com/packages/oriceon-toastr-5-laravel)
```

###  Alternatives

[brian2694/laravel-toastr

toastr.js for Laravel

136649.4k5](/packages/brian2694-laravel-toastr)[mckenziearts/laravel-notify

Flexible flash notifications for Laravel

1.7k1.1M5](/packages/mckenziearts-laravel-notify)[helmesvs/laravel-notify

Elegant notifications to laravel with Toastr or PNotify

6127.3k](/packages/helmesvs-laravel-notify)[ladumor/one-signal

Laravel Wrapper for OneSignal.

125331.3k](/packages/ladumor-one-signal)[gr8shivam/laravel-sms-api

A modern, flexible Laravel package for integrating any SMS gateway with REST API support

10138.4k](/packages/gr8shivam-laravel-sms-api)[tjgazel/laravel-toastr

Toastr notifications for laravel 5.5+, 6 and 7

1512.7k](/packages/tjgazel-laravel-toastr)

PHPackages © 2026

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