New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

yoeunes/toastr

toastr.js flush notifications for Laravel
1,234,798 407

Larablocks Analysis

yoeunes/toastr works with Laravel 11, 12 and 13 (latest release v3.3.0, Dec 31, 2025).

Laravel 5 to 9 in earlier releases.

Recommendation checks

Replacement recommended

Replacement recommended: use php-flasher/flasher-toastr-laravel instead. Named by its author on Packagist.

  • Marked abandoned on Packagist
  • Works with Laravel 13, the current version
  • Released in the last 12 months (Dec 31, 2025)
  • 21,364 downloads a month (at least 10,000)
  • 407 GitHub stars (at least 100)

State

Abandoned
  • Packagist marks this package abandoned.
  • Last stable release: Dec 31, 2025.
  • 2 releases in the last 12 months.
  • First released: Feb 8, 2018.
  • Monthly downloads: 21,364.
  • 15 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 3, 2026.

Install
composer require yoeunes/toastr
Latest Version:v3.3.0
PHP:>=8.2
Laravel:11 · 12 · 13
Older releases:5 – 9
License:MIT
Last Updated:Dec 31, 2025
Links: GitHub  ·  Packagist
Maintainer: yoeunes

Toastr.js notifications for Laravel

:eyes: This package helps you to add toastr.js notifications to your Laravel projects.

Latest Stable Version Latest Unstable Version Total Downloads License

toastr

Version 3 Update

With the release of version 3, yoeunes/toastr is now powered by PHPFlasher. When you install this package, it automatically utilizes PHPFlasher under the hood. For those who are already using PHPFlasher or are interested in a more direct implementation, you might consider using PHPFlasher directly as it offers the same API and additional features.

Install

You can install the package using composer

composer require yoeunes/toastr

After installation, publish the assets using:

php artisan flasher:install

Usage:

The usage of this package is very simple and straightforward. it only required one step to use it :

Use toastr() helper function inside your controller to set a toast notification for info, success, warning or error

// Display a success toast with no title
flash()->success('Operation completed successfully.');

As an example:

<?php

namespace App\Http\Controllers;

use App\Post;
use App\Http\Requests\PostRequest;
use Illuminate\Database\Eloquent\Model;

class PostController extends Controller
{
    public function store(PostRequest $request)
    {
        $post = Post::create($request->only(['title', 'body']));

        if ($post instanceof Model) {
            toastr()->success('Data has been saved successfully!');

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

        toastr()->error('An error has occurred please try again later.');

        return back();
    }
}

License

MIT

Alternatives to yoeunes/toastr

php-flasher/flasher

The foundational PHP library for PHPFlasher, enabling the creation of framework-...

5,035,140 64
devrabiul/laravel-toaster-magic

Laravel Toaster Magic is a lightweight, flexible toast library for Laravel proje...

128,547 230

Version History

Version Released PHP Laravel License
v3.3.0 >=8.2 MIT
v3.2.0 >=8.2 MIT
v3.1.1 >=8.2 MIT
v3.1.0 >=8.2 MIT
v3.0.2 >=8.2 MIT