Download the PHP package edulazaro/wiretoast without Composer

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

wiretoast

Framework-agnostic toast notification system for Laravel, Livewire and Alpine. Pure CSS themes (no Tailwind, no Bootstrap), drop-in API, zero JS dependencies.

Live preview → Try the 11 themes, 5 types, 7 positions and dark mode in the interactive demo.

Requirements

Features

Install

Then load the assets. Pick the path that matches your project.

Without a bundler: vendor:publish

For projects that don't use Vite or another bundler, copy the assets to public/vendor/wiretoast/ and tell the component to inject the <link> and <script> tags by passing :assets="true".

Recommended: bundle with Vite

Import wiretoast from your existing app.css and app.js. Vite minifies, hashes, and concatenates everything into your main bundle, so there's no extra HTTP request and you reuse your cache-busting setup.

Add the component to your layout:

By default the component does not inject any <link> or <script> tags, so it won't conflict with your Vite bundle.

Optionally, add a Vite alias for cleaner imports:

Optional props (both paths)

Usage

The API is the same in all three environments and always called notify.

Livewire (PHP)

Alpine.js

JavaScript

Themes

Set the theme on the component (or any ancestor element):

Or dynamically:

Custom theme

Themes are pure CSS variable sets. Create your own without touching the package:

Or scope it under an attribute so users can switch:

Dark mode

Out of the box, dark mode is applied automatically based on the user's OS via prefers-color-scheme: dark. To override:

The package also responds to a .dark class on any ancestor (compatible with Tailwind dark mode setups) and to the [data-wt-theme-mode] attribute.

Reference

notify(input, type, options) (JS) / $this->notify(...) (Livewire)

Argument Type Description
input string \| { title, message } Message text or object with title and message
type 'success' \| 'error' \| 'warning' \| 'info' \| 'neutral' Semantic type, default 'info' (JS) / 'success' (Livewire)
options boolean \| object Options object, or true for legacy group mode

Options object

Key Type Default Description
position string 'top-right' One of the 7 positions
timeout number 5000 Auto-dismiss in ms (0 = persist)
progress boolean false Show countdown bar (pauses on hover)
group boolean false Append to existing same-type toast

CSS variables

Structural: --wt-radius, --wt-padding, --wt-gap, --wt-width, --wt-font, --wt-font-size, --wt-line-height

Color: --wt-bg, --wt-text, --wt-text-muted, --wt-border, --wt-shadow

Semantic: --wt-success, --wt-error, --wt-warning, --wt-info, --wt-neutral (each also has a *-tint for soft theme)

Motion: --wt-duration, --wt-easing

Per-toast: --wt-progress-duration (set automatically when progress: true)

Credits

Developed by Edu Lázaro.

License

MIT


All versions of wiretoast with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
illuminate/support Version >=11.0
illuminate/view Version >=11.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 edulazaro/wiretoast contains the following files

Loading the files please wait ...