PHPackages                             kamaln7/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. kamaln7/toastr

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

kamaln7/toastr
==============

Easy toastr notifications for Laravel 4

102.3k28[4 issues](https://github.com/KamalN7/toastr/issues)[1 PRs](https://github.com/KamalN7/toastr/pulls)PHP

Since Jan 17Pushed 8y ago1 watchersCompare

[ Source](https://github.com/KamalN7/toastr)[ Packagist](https://packagist.org/packages/kamaln7/toastr)[ RSS](/packages/kamaln7-toastr/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

toastr
======

[](#toastr)

Easy [toastr.js](https://github.com/CodeSeven/toastr) notifications for Laravel 4

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

[](#installation)

1. Either run `composer require kamaln7/toastr dev-master` or add `"kamaln7/toastr": "dev-master"` to the `require` key in `composer.json` and run `composer install`
2. Add `'Kamaln7\Toastr\ToastrServiceProvider',` to the `providers` key in `app/config/app.php`
3. Add `'Toastr'          => 'Kamaln7\Toastr\Facades\Toastr',` to the `aliases` key in `app/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 config:publish kamaln7/toastr
```

to publish the config file for Toastr. Then edit `app/config/packages/kamaln7/toastr/config.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

26

—

LowBetter than 43% of packages

Maintenance12

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 64.3% 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.

### Community

Maintainers

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

---

Top Contributors

[![kamaln7](https://avatars.githubusercontent.com/u/552075?v=4)](https://github.com/kamaln7 "kamaln7 (9 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/kamaln7-toastr/health.svg)

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

###  Alternatives

[cedaro/wp-plugin

A base WordPress plugin library.

4147.6k4](/packages/cedaro-wp-plugin)[mostafaznv/php-x-sendfile

Serve large files using web server with support for laravel

5311.3k](/packages/mostafaznv-php-x-sendfile)[haringsrob/icecat

Icecat data fetching class

1746.0k](/packages/haringsrob-icecat)[blacksmoke26/yii2cdn

A Yii Framework 2 component for using assets in different environments (Local/CDNs)

1412.0k](/packages/blacksmoke26-yii2cdn)[spatie/laravel-mailcoach-monaco

A Monaco editor package for Mailcoach

1015.2k1](/packages/spatie-laravel-mailcoach-monaco)[a2design-inc/laravel-form-builder

Form Builder for the Laravel Framework

102.4k](/packages/a2design-inc-laravel-form-builder)

PHPackages © 2026

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