Download the PHP package thbappy7706/laravel-toastify without Composer

On this page you can find all versions of the php package thbappy7706/laravel-toastify. 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-toastify

Laravel Toastify

Latest Version on Packagist Total Downloads License

A feature-rich, customizable toast notification package for Laravel Blade and Livewire v3/v4, inspired by react-toastify. Includes beautiful bouncing animations and extensive customization options.

πŸš€ Live Demo

πŸ‘‰ View Live Demo

Features

✨ Multiple Animations: Bounce (default), Slide, Zoom, Flip
🎯 Flexible Positioning: 6 positions (top-left, top-right, top-center, bottom-left, bottom-right, bottom-center)
🎨 Toast Types: Success, Error, Warning, Info, Default
⏱️ Auto-close: Customizable duration or disable
πŸ“Š Progress Bar: Visual countdown timer
πŸ–±οΈ Drag to Dismiss: Swipe or drag toasts away
⏸️ Pause on Hover: Auto-pause timer when hovering
πŸŒ™ Multiple Themes: Light, Dark, Colored
🌍 RTL Support: Right-to-left text direction
πŸ“± Responsive: Mobile-friendly
⚑ Livewire v3/v4 Compatible: Real-time updates 🎭 Stackable: Multiple toasts display beautifully

Requirements

Installation

  1. Install via Composer:

  2. Publish the config, views, and assets:

Setup

For Livewire Applications

Add the Livewire component to your layout file (usually resources/views/layouts/app.blade.php):

For Traditional Blade Applications

Use the Blade directive in your layout:

Usage

Basic Usage

In Controllers (Redirects)

In Livewire Components

In JavaScript (Frontend)

Advanced Usage

Custom Options

Available Options

Option Type Default Description
autoClose int/false 5000 Auto close duration in ms (false to disable)
position string 'top-right' Position of toast
transition string 'bounce' Animation type (bounce, slide, zoom, flip)
hideProgressBar bool false Hide the progress bar
closeButton bool true Show close button
pauseOnHover bool true Pause timer on hover
pauseOnFocusLoss bool true Pause when window loses focus
draggable bool true Enable drag to dismiss
draggablePercent int 80 Percentage of width to dismiss
rtl bool false Right-to-left direction

Available Positions

Available Transitions

Available Toast Types

Container Customization

You can customize the container globally:

Programmatic Control

Remove Specific Toast

Clear All Toasts

Configuration

The configuration file is located at config/toastify.php:

Environment Variables

You can set defaults in your .env file:

Styling & Theming

Themes

Available themes:

Change theme in config:

Custom Styling

You can customize the CSS by editing the published CSS file at public/vendor/toastify/css/toastify.css or by overriding CSS variables:

Examples

Success Notification

Error with Custom Duration

Warning at Bottom

Info with Slide Animation

Multiple Toasts

RTL Support

Browser Support

Credits

Inspired by react-toastify by Fadi Khadra.

License

The MIT License (MIT). Please see License File for more information.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Support

If you encounter any issues or have questions, please file an issue on the GitHub repository.


All versions of laravel-toastify with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1|^8.2|^8.3|^8.4
illuminate/support Version ^10.0|^11.0|^12.0
livewire/livewire Version ^3.0|^4.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 thbappy7706/laravel-toastify contains the following files

Loading the files please wait ...