Download the PHP package mrclln/wire-sileo without Composer

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

wire-sileo

A Laravel Livewire package that brings beautiful toast notifications to your Livewire applications. Inspired by the elegant UI of Sileo and built with the Livewire notification patterns pioneered by Livewire Alert.

Features

Installation

Install the package and frontend dependencies:

The package requires:

Publish the configuration, JavaScript bridge, and view:

This publishes:

Setup

Add the Livewire toaster to your application layout:

Import the published bridge in your Vite entrypoint, or add it to vite.config.js:

Option 1: Import in your app entrypoint (e.g., resources/js/app.js):

Option 2: Add as a separate Vite input (in vite.config.js):

Then build your assets with Vite:

Usage

Use the facade in your Livewire components:

Toast Types

Method Description
Sileo::success($title, $description) Green success toast
Sileo::error($title, $description) Red error toast
Sileo::warning($title, $description) Amber warning toast
Sileo::info($title, $description) Blue info toast
Sileo::loading($title, $description) Loading state toast
Sileo::danger($title, $description) Alias for error()

Fluent Options

All toast methods return a chainable builder:

Available Options

Option Type Description
title string Toast heading text
description string Toast body text (plain text)
html string Raw HTML content (renders HTML markup)
position string Position: top-right, top-center, top-left, bottom-right, bottom-center, bottom-left
duration int/null Display time in milliseconds. null disables auto-dismiss
theme string Theme: light, dark, or system (default: follows OS preference)
fill string Background color (CSS value like #1f2937 or Tailwind color like white)
roundness int Border radius in pixels (default: 16)
styles array Custom Tailwind classes: ['title' => '', 'description' => '', 'badge' => '', 'button' => '']
customClasses array/string Additional CSS classes to apply to the toast container
icon string Icon name from lucide-react (e.g., rocket, check, info, alert-circle)

HTML Content

For HTML in toast content, use the html() method (note: this renders raw HTML via dangerouslySetInnerHTML):

⚠️ Security: Only use trusted HTML content as it renders raw markup without sanitization.

Custom Icons

Pass an icon name to replace the default state icon:

Available icons: Any icon from lucide-react (use kebab-case: alert-circle, check-circle, loader-2, trash, etc.).

Array Configuration

Pass an array with all options at once:

Action Toasts

Toasts with a single interactive button:

Note: Sileo action toasts only support a single button. Use button() for the action and set duration(null) if you want the toast to persist until interaction.

Promise Toasts

Promise toasts show a loading state that resolves or rejects based on your backend logic:

Fluent API:

Array API:

Resolving Promises:

Custom Classes

Add custom CSS classes to toast elements:

Configuration

Publish the configuration file:

Configure defaults in config/wire-sileo.php:

Screenshots

Credits

License

MIT License


All versions of wire-sileo with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
livewire/livewire Version ^3.0|^4.0
illuminate/support Version ^10.0|^11.0|^12.0|^13.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 mrclln/wire-sileo contains the following files

Loading the files please wait ...