Download the PHP package elegantly/livewire-modal without Composer

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

Livewire Modals. Done Right.

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This package allows you to seamlessly open Livewire components inside modals or slideovers with powerful features:

Requirements

How It Works

This package provides a single Livewire Modal component that should be placed at the end of your body tag. This component dynamically renders and manages all modal instances while maintaining a modal history.

Modals can be opened and closed by dispatching modal-open and modal-close events.

Any Livewire component can be used as a modal without requiring special interfaces or base components—just use your existing components as they are.

Installation

Install the package via Composer:

To customize modal behavior, publish the views with:

Usage

Configuring Tailwind CSS

Since the modal component is styled using Tailwind CSS, you must include its views in your Tailwind configuration file:

Setting Up Your Application

Add the modal manager component <livewire:modal /> at the end of your body tag, typically in your layout views:

Preparing Your Modals

Any Livewire component can be displayed as a modal. However, certain features, such as stacking, require additional customization.

Creating a Simple Modal Component

This package provides two Blade components to simplify stacking and positioning:

Wrap your content within these components:

Controlling the Modal Position

By default, modals are centered, but their position can be adjusted using the position prop:

Fullscreen Modal

To make a modal fullscreen, use the fullscreen prop:

Creating a Slideover Component

Opening a Modal

To open a modal, dispatch a modal-open event:

Preloading a Modal

To preload a modal, dispatch a modal-preload event with the same props used to open it:

Preloading a Modal on Hover

Using the custom Alpine directive, you can preload a modal when the user starts hovering over a button. This improves UX by ensuring faster modal openings.

Closing the Current Modal

To close the currently active modal, dispatch a modal-close event:

Closing All Modals

To close all modals at once:

Testing

Run the test suite with:

Changelog

For recent changes, see CHANGELOG.

Contributing

See CONTRIBUTING for contribution guidelines.

Security Vulnerabilities

For information on reporting security vulnerabilities, please review our security policy.

Credits

License

This package is licensed under the MIT License. See License File for details.


All versions of livewire-modal with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/contracts Version ^10.0||^11.0||^12.0
livewire/livewire Version ^3.0
spatie/laravel-package-tools Version ^1.16
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 elegantly/livewire-modal contains the following files

Loading the files please wait ....