PHPackages                             php-flasher/flasher-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. php-flasher/flasher-toastr

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

php-flasher/flasher-toastr
==========================

PHPFlasher Toastr - An extension for PHPFlasher to integrate Toastr notifications seamlessly in Laravel or Symfony. Enhances UX with elegant, responsive toast messages.

v2.5.0(2mo ago)81.3M—8.1%15MITPHPPHP &gt;=8.2

Since Dec 14Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/php-flasher/flasher-toastr)[ Packagist](https://packagist.org/packages/php-flasher/flasher-toastr)[ Docs](https://php-flasher.io)[ GitHub Sponsors](https://github.com/yoeunes)[ RSS](/packages/php-flasher-flasher-toastr/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelogDependencies (2)Versions (136)Used By (5)

PHPFlasher Toastr Adapter (Prime)
=================================

[](#phpflasher-toastr-adapter-prime)

[![Latest Version](https://camo.githubusercontent.com/92962ff48aab40e22a3af60e56b27ec4d370a3ec2e07902ebf03b97c15559e43/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7068702d666c61736865722f666c61736865722d746f617374722e737667)](https://packagist.org/packages/php-flasher/flasher-toastr)[![Total Downloads](https://camo.githubusercontent.com/f89f1006fc8aab25540d19fa307398da99b9b59a7ffb76ca3f6895a817748629/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7068702d666c61736865722f666c61736865722d746f617374722e737667)](https://packagist.org/packages/php-flasher/flasher-toastr)[![License](https://camo.githubusercontent.com/3fb000ba35c78ab251a8554123edee87eb253a9bcedf6e4098ede6d84f1b18d2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7068702d666c61736865722f666c61736865722d746f617374722e737667)](https://packagist.org/packages/php-flasher/flasher-toastr)

Toastr adapter for PHPFlasher. Elegant toast notifications with full TypeScript support.

Requirements
------------

[](#requirements)

- PHP &gt;= 8.2
- PHPFlasher ^2.4.0

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

[](#installation)

```
composer require php-flasher/flasher-toastr
```

Quick Start
-----------

[](#quick-start)

```
// Basic usage
toastr('Operation completed successfully!', 'success');
toastr('An error occurred.', 'error');
toastr('Information message.', 'info');
toastr('Warning message.', 'warning');

// With options
toastr('Success message', 'success', [
    'timeOut' => 5000,
    'positionClass' => 'toast-top-right',
    'progressBar' => true,
]);

// Custom notification
toastr('Custom message', 'custom-type');
```

Features
--------

[](#features)

- **Simple API**: `success()`, `error()`, `info()`, `warning()`, `flash()`
- **Toastr Options**: `timeOut`, `positionClass`, `progressBar`, `closeButton`, `newestOnTop`
- **Type Safety**: Full PHP type hints and PHPStan support
- **Helper Functions**: Global `toastr()` helper for quick access

Documentation
-------------

[](#documentation)

Complete documentation: [php-flasher.io](https://php-flasher.io)

License
-------

[](#license)

[MIT](https://opensource.org/licenses/MIT)

###  Health Score

63

—

FairBetter than 99% of packages

Maintenance88

Actively maintained with recent releases

Popularity44

Moderate usage in the ecosystem

Community19

Small or concentrated contributor base

Maturity84

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 96.1% 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 ~14 days

Recently: every ~22 days

Total

134

Last Release

72d ago

Major Versions

v0.9.7 → v1.0.22022-05-16

1.x-dev → v2.0.02024-05-05

PHP version history (2 changes)v0.1.0PHP &gt;=5.3

v2.0.0PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/719ac0f6bf24d689686134530caf539727d784ad4a66c81ad5dcdba161b4ea0a?d=identicon)[yoeunes](/maintainers/yoeunes)

---

Top Contributors

[![yoeunes](https://avatars.githubusercontent.com/u/10859693?v=4)](https://github.com/yoeunes "yoeunes (49 commits)")[![yoeunes-spin](https://avatars.githubusercontent.com/u/86292260?v=4)](https://github.com/yoeunes-spin "yoeunes-spin (2 commits)")

---

Tags

flash-messagesnotification-systemphpphp-flashertoastryoeunesflash-messageslaravel-notificationphp-notification-systemsymfony-notificationuser-feedback-toolsweb-application-notificationsphp-user-interfacecustomizable-alerts-phpinteractive-web-notificationsphp-messaging-libraryuser-engagement-php

### Embed Badge

![Health badge](/badges/php-flasher-flasher-toastr/health.svg)

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

###  Alternatives

[bentools/webpush-bundle

Send push notifications through Web Push Protocol to your Symfony users.

71274.3k](/packages/bentools-webpush-bundle)[calchen/laravel-dingtalk-robot-notification

钉钉智能群助手 Laravel/Lumen 消息通知扩展包（Dingtalk robot message notifications for Laravel/Lumen）

2326.4k](/packages/calchen-laravel-dingtalk-robot-notification)

PHPackages © 2026

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