Download the PHP package juanrube/laravel-toast-magic-8 without Composer

On this page you can find all versions of the php package juanrube/laravel-toast-magic-8. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-toast-magic-8

🍞 ToastMagic - Laravel Toaster (With Livewire v3 Support)

this is a fork adapted to Laravel8 and PHP < 8

Laravel Toaster Magic is a lightweight and flexible toast notification package for Laravel applications β€” built with zero dependencies on jQuery, Bootstrap, or Tailwind. It’s fully compatible with Livewire, supports custom events, and now features a Material-inspired design for a modern UX out of the box.

Latest Stable Version Total Downloads Monthly Downloads GitHub license Buy us a tree GitHub Repo stars


πŸ“š Table of Contents


πŸš€ Live Demo

πŸ‘‰ Check out the live demo

Live Demo Thumbnail


✨ Features


πŸ“¦ Installation

Install the package via Composer:

`

Then publish the package assets:


βš™οΈ Usage

1. Basic Setup

Include the necessary assets in your layout Blade template:

In the <head> section:

Before the closing </body> tag:

Example:


2. Usage in Controller

Trigger toast notifications from your controllers using the ToastMagic facade:


3. Usage in JavaScript (Optional)

Use ToastMagic directly in JavaScript (for AJAX responses, etc.):


4. βœ… Livewire v3 Support

Enable Livewire support by updating your config file:


Dispatch toast notifications from Livewire components:

Supported status types: success, info, warning, error


5. βœ… Themes

Change Theme by updating your config file:


6. 🎨 Enabling Color Mode

ToastMagic supports a color mode that dynamically applies toast colors based on the toast type (success, error, warning, info). This makes your notifications visually consistent and meaningful without manually specifying colors or themes.

Enable color mode in your configuration file config/laravel-toaster-magic.php:

7. 🎨 Enabling Gradient Mode

Laravel Toaster Magic now supports a gradient mode, which dynamically applies toast colors based on the toast type (success, error, warning, info). This ensures that your notifications are visually consistent and meaningful without manually specifying colors or themes.

To enable gradient mode, update your configuration file config/laravel-toaster-magic.php:

Note: Gradient mode works only with the default and material themes.


🧩 Alternative Syntax & Fluent API

ToastMagic provides both simple and advanced APIs to suit your style.

πŸ”Ή Static Method (Quick)

πŸ”Ή Fluent Syntax (Advanced)


πŸ“ Toast Position Options

Customize toast display position using any of the following:

Position Description
toast-top-start Top left corner
toast-top-end Top right corner (default)
toast-top-center Top center
toast-bottom-start Bottom left corner
toast-bottom-end Bottom right corner
toast-bottom-center Bottom center

πŸŒ™ Enable Dark Mode

Add theme="dark" to your <body> tag to automatically enable dark mode.

🎯 Get Started Today!

Experience the magic of ToastMagic and enrich your Laravel application with modern, elegant toast notifications.


🀝 Contributing

We welcome contributions! Please fork the repository, make your changes, and submit a pull request. For feature requests or issues, open a GitHub issue.


πŸ“„ License

This package is open-source software licensed under the MIT license.


🌱 Treeware

This package is Treeware. If you use it in production, then we ask that you buy the world a tree to thank us for our work. By contributing to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.


πŸ“¬ Contact

For support or inquiries, feel free to reach out: πŸ“§ [email protected]


All versions of laravel-toast-magic-8 with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3|^8.0
illuminate/support Version ^8.0
illuminate/filesystem Version ^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package juanrube/laravel-toast-magic-8 contains the following files

Loading the files please wait ...