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

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

awalhadi/laravel-toastr
=======================

Easy Toastr notifications for Laravel

v1.0.2(1y ago)113MITPHPPHP ^8.1|^8.2

Since Aug 10Pushed 1y ago1 watchersCompare

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

READMEChangelogDependencies (3)Versions (6)Used By (0)

Laravel Toastr
==============

[](#laravel-toastr)

Easy Toastr notifications for Laravel 8+

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

[](#installation)

You can install the package via composer:

```
composer require awalhadi/laravel-toastr
```

Usage
-----

[](#usage)

You can use the `toastr()` helper function or the `ttoastr()` function for typed notifications:

```
// In your controller
public function store()
{
    // Your logic here

    toastr()->success('Post created successfully!');
    // or
    toastr('Post created successfully!', 'success');
    // or
    ttoastr('success', 'Post created successfully!');

    return redirect()->route('posts.index');
}
```

You can also chain methods for more control:

```
toastr()->position('top-left')->success('Message');
```

Available types: `success`, `info`, `warning`, `error`

In your blade template, include the Toastr view:

```
@include('toastr::toastr')
```

The required CSS and JS files will be automatically included when a notification is fired.

Configuration
-------------

[](#configuration)

To publish the config file:

```
php artisan vendor:publish --provider="YourVendor\LaravelToastr\ToastrServiceProvider" --tag="config"
```

You can customize the default options in the published config file.

Testing
-------

[](#testing)

```
composer test
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~210 days

Total

3

Last Release

587d ago

PHP version history (2 changes)v1.0.0PHP ^8.0

v1.0.1PHP ^8.1|^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/39948105?v=4)[MD. A Awal Hadi](/maintainers/awalhadi)[@awalhadi](https://github.com/awalhadi)

---

Top Contributors

[![awalhadi](https://avatars.githubusercontent.com/u/39948105?v=4)](https://github.com/awalhadi "awalhadi (7 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[mckenziearts/laravel-notify

Flexible flash notifications for Laravel

1.7k1.1M5](/packages/mckenziearts-laravel-notify)[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[laravel-notification-channels/apn

Apple APN Push Notification Channel

2021.9M4](/packages/laravel-notification-channels-apn)[laravel-notification-channels/microsoft-teams

A Laravel Notification Channel for Microsoft Teams

1603.0M7](/packages/laravel-notification-channels-microsoft-teams)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[illuminate/mail

The Illuminate Mail package.

5910.1M391](/packages/illuminate-mail)

PHPackages © 2026

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