yoeunes/toastr
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 recommendedReplacement 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 |
Toastr.js notifications for Laravel
:eyes: This package helps you to add toastr.js notifications to your Laravel projects.

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
The foundational PHP library for PHPFlasher, enabling the creation of framework-...
Laravel Toaster Magic is a lightweight, flexible toast library for Laravel proje...
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 | ||
| v3.0.1 | >=8.2 | MIT | ||
| v3.0.0 | >=8.2 | MIT | ||
| v2.3.5 | >=5.3 | MIT | ||
| v2.3.4 | >=5.3 | MIT | ||
| v2.3.3 | >=5.3 | MIT | ||
| v2.3.2 | >=5.3 | MIT | ||
| v2.3.1 | >=5.3 | MIT | ||
| v2.3.0 | >=5.3 | MIT | ||
| v2.1.0 | >=5.3 | MIT | ||
| v2.0.2 | >=5.3 | MIT | ||
| v2.0.1 | >=5.3 | MIT | ||
| v2.0.0 | >=5.3 | MIT | ||
| v1.2.7 | >=7.0 | ^5.5 || | MIT | |
| v1.2.6 | >=7.0 | ^5.5 || | MIT | |
| v1.2.5 | >=7.0 | ^5.5 || | MIT | |
| v1.2.4 | >=7.0 | ^5.5 || | MIT | |
| v1.2.3 | >=7.0 | ^5.5 || | MIT | |
| v1.2.2 | >=7.0 | ^5.5 || | MIT | |
| v1.2.1 | >=7.0 | ~5.5.0| | MIT | |
| v1.2 | ^7.0| | ~5.5.0| | MIT | |
| v1.1.4 | ^7.0| | ~5.5.0| | MIT | |
| v1.1.3 | ^7.0| | ~5.5.0| | MIT | |
| v1.1.2 | ^7.0| | ~5.5.0| | MIT | |
| v1.1.1 | ^7.0| | ~5.5.0| | MIT | |
| v1.1.0 | ^7.0| | ~5.5.0| | MIT |
Showing the latest 30 of 34. See every release on Packagist