Download the PHP package mrjokermr/livewire-multi-select without Composer

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

Livewire Multi Select

A simple, yet powerful, multi-select component for Livewire 3. It uses native inline CSS for out-of-the-box compatibility but is fully customizable with your own CSS classes.

Installation

Install the package via composer:

Publish the configuration file to customize the component's appearance and behavior. This is a recommended step.

This will create a config/multi-select.php file in your application.

Configuration

The published config/multi-select.php file allows you to set default behaviors and styling.

Quick nav

Usage & Examples

Simple Array

You can populate the select component with a simple associative array. The array key will be the option's value, and the array value will be the display label.

Use \Mrjokermr\LivewireMultiSelect\Classes\SelectSettings::simple() to create the settings.

Eloquent Models

Populate the options directly from an Eloquent model.

Use \Mrjokermr\LivewireMultiSelect\Classes\SelectSettings::eloquentModel() to define the source model and attributes.

Single Value Mode

To allow only a single selection, chain the ->singleValueMode() method. The wire:model property will hold a single value instead of an array.

Search Functionality

Enable a search input within the dropdown to filter options by chaining the ->enableSearch() method.

For Eloquent sources, you can specify additional attributes to search against.

In the config you might set the styling for search input element or use the method

Livewire Events

To handle value changes with Livewire events instead of wire:model, you can specify an event name. This is useful for triggering actions in parent components.

Pre-filtering with Base Query

When using eloquentModel, you can provide a baseQuery to apply a permanent filter to the available options.

Usage with static forms (Without wire:model) & Error message handling

When setting the name=, the input element will contain the input name. And also errors will be displayed.

Customization

You can customize each instance of the component using fluent methods.

Customizing the Label

Set a display label for the input. It can be omitted by not calling the method.

Setting the Placeholder

Change the 'selected' text or overwrite the 'translations.selected' configured in the config file

Enable/Disable input error display

You can configure this value in the config file but you might also change the behavior via:

Overriding CSS Classes

Override the default or configured CSS classes for a specific component instance. Any null values will fall back to the classes defined in config/multi-select.php.

Close on Select Behavior

Control whether the dropdown closes after an option is selected. The default is configured in config/multi-select.php.


->setCloseOnSelect(false) // Keep the dropdown open after selection

All versions of livewire-multi-select with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^10 || ^11 || ^12
livewire/livewire Version ^3
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 mrjokermr/livewire-multi-select contains the following files

Loading the files please wait ...