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)144MITPHP

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 today

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

28

—

LowBetter than 52% of packages

Maintenance46

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

420d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/98444239?v=4)[Hafizul Islam](/maintainers/hafizulislamhfz)[@hafizulislamhfz](https://github.com/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

[maize-tech/laravel-email-domain-rule

Laravel Email Domain Rule

612.0k](/packages/maize-tech-laravel-email-domain-rule)

PHPackages © 2026

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