PHPackages                             hafizulislamhfz/dy-toast - 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. hafizulislamhfz/dy-toast

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

hafizulislamhfz/dy-toast
========================

A dynamic toast notification package for Laravel

v1.0.4(1y ago)143MITPHP

Since Mar 21Pushed 1y ago1 watchersCompare

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

READMEChangelog (4)DependenciesVersions (6)Used By (0)

DyToast
=======

[](#dytoast)

A dynamic toast notification package for Laravel.

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

[](#installation)

Install the package using Composer:

```
composer require hafizulislamhfz/dy-toast
```

After installed, publish the toast resources:

```
php artisan dytoast:publish
```

Modify Your app.blade.php (or Main Layout) In the main layout file (resources/views/layouts/app.blade.php). To ensure the toast system works correctly, you need to include the dy-toast component before any scripts or dynamic content that may trigger a toast.

```

    {{-- head --}}

    {{-- Load DyToast early to ensure it initializes before usage --}}
    @include('components.dy-toast.toast')
    {{-- or --}}

```

Usage
-----

[](#usage)

### Trigger Toast Notifications

[](#trigger-toast-notifications)

Use the toast in controllers or anywhere within Laravel:

```
use Hafizulislamhfz\DyToast\Facades\Toast;

// Display a success message
Toast::success('Operation completed successfully!');
toast('Operation completed successfully!');

// Display an error message
Toast::error('Something went wrong!');
toast('Something went wrong!', 'error');

// Display a warning message
Toast::warning('This is a warning!');
toast('This is a warning!', 'warning');

// Display an info message
Toast::info('Some useful information here!');
toast('Some useful information here!', 'info');
```

Use the toast in script:

```

    // Display a success message
    toast('Operation completed successfully!');
    toast.success('Operation completed successfully!');

    // Display an error message
    toast('Something went wrong!', 'error');
    toast.error('Something went wrong!');

    // Display a warning message
    toast('This is a warning!', 'warning');
    toast.warning('This is a warning!');

    // Display an info message
    toast('Some useful information here!', 'info');
    toast.info('Some useful information here!');

```

Preview
-------

[](#preview)

[![DyToast Preview](./art/preview.gif)](./art/preview.gif)

License
-------

[](#license)

DyToast is open-source software licensed under the [MIT license](LICENSE).

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance50

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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 ~16 days

Total

4

Last Release

367d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6786ed4d1ab58e60bd2d13ef6a86206c1aef2f167130a0019d46d5347ae39637?d=identicon)[hafizulislamhfz](/maintainers/hafizulislamhfz)

---

Top Contributors

[![hafizulislamhfz](https://avatars.githubusercontent.com/u/98444239?v=4)](https://github.com/hafizulislamhfz "hafizulislamhfz (29 commits)")

### Embed Badge

![Health badge](/badges/hafizulislamhfz-dy-toast/health.svg)

```
[![Health](https://phpackages.com/badges/hafizulislamhfz-dy-toast/health.svg)](https://phpackages.com/packages/hafizulislamhfz-dy-toast)
```

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

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

PHPackages © 2026

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