Download the PHP package abhi-conceptlz/livewire-toast without Composer

On this page you can find all versions of the php package abhi-conceptlz/livewire-toast. 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 livewire-toast

livewire-toast

Livewire v3 Package to display Toast Notification based on TALL Stack.

Requirements

Make sure that Livewire is installed properly on your project.

Make sure that TailwindCSS is installed properly on your project.

Make sure that AlpineJS is installed properly on your project.

Installation

You can install the Package using Composer

Usage

Put Livewire-component @livewire('livewire-toast') anywhere into your app layout.

You can then call the Livewire Toast as below:

From Livewire Component

Using Session Flash

From Livewire View

From JS

Configurations

If you want to override the configurations, you must publish the assets using below command

This will publish the configuration file at config/livewire-toast.php. You can override any configurations. Name Type Default Description Options
type String success Notification Type success, warning, error, info
position String bottom-right Part of the screen where notifications will pop out bottom-right, bottom-left, top-right, top-left
duration Number 3000 Time (in ms) to keep the notification on screen (if negative - notification will stay forever or until clicked)
showIcon Boolean true Whether to show icon next to message.
hideOnClick Boolean true Close notification when clicked
color.bg.success String green Color for Success Notification. Must be available in TailwindCss
color.bg.warning String yellow Color for Warning Notification. Must be available in TailwindCss
color.bg.info String blue Color for Info Notification. Must be available in TailwindCss
color.bg.error String red Color for Error Notification. Must be available in TailwindCss
text_color String white Text Color used by TailwindCss class. If using color other than white or black, provide full color like red-300.
transition Boolean true Whether to use Transition to hide/show Notification
transition_type String appear_from_above Transition Type appear_from_below, appear_from_above, appear_from_left, appear_from_right, zoom_in, rotate

You can also publish the View using below command

This will publish the Views in resources/views/vendor/livewire-toast directory which you can then customize.

Troubleshooting

Your messages don't get styles while using TailwindCss? Please publish your view. Therefore Laravel Mix compiler will find package related views and will purge CSS accordingly.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Credits

License

MIT


All versions of livewire-toast with dependencies

PHP Build Version
Package Version
No informations.
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 abhi-conceptlz/livewire-toast contains the following files

Loading the files please wait ....