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

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

quodos/laravel-5-toastr
=======================

Easy toastr notifications for Laravel 5

2756PHP

Since May 5Pushed 11y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

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`
3. Add `'Toastr'          => 'Kamaln7\Toastr\Facades\Toastr',` to the `aliases` key in `config/app.php`

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

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![kamaln7](https://avatars.githubusercontent.com/u/552075?v=4)](https://github.com/kamaln7 "kamaln7 (9 commits)")[![oriceon](https://avatars.githubusercontent.com/u/358823?v=4)](https://github.com/oriceon "oriceon (7 commits)")[![fgreinus](https://avatars.githubusercontent.com/u/1236785?v=4)](https://github.com/fgreinus "fgreinus (2 commits)")[![JimmyHowe](https://avatars.githubusercontent.com/u/3468092?v=4)](https://github.com/JimmyHowe "JimmyHowe (2 commits)")[![piperone](https://avatars.githubusercontent.com/u/351744?v=4)](https://github.com/piperone "piperone (1 commits)")

### Embed Badge

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

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

###  Alternatives

[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[eduardokum/laravel-mail-auto-embed

Library for embed images in emails automatically

1702.0M5](/packages/eduardokum-laravel-mail-auto-embed)

PHPackages © 2026

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