Download the PHP package etdte/livewire-multiselect without Composer

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

Livewire multiselect component

Requirements

Installation

You can install the package via composer:

Usage

1) Add trait to your component

2) Add select listener to your component

3) Add variables for an available options and a selected ones to your component

4) Add the select to your page

Events

Multiselect component emits a event, which is caught by trait and sets values to a proper variables in your component.
This trait also calls function on your component, if it exists, and passes a select name and selected items. You can define a method in your component to react on the changes:
Works only if

multiselect

select

Props

Property Arguments Default Example
trackBy \<String> - Used to compare objects. id
label \<String> - Object property in option, that will be visible in the dropdown. name
name \<String> - Used to name inputs & identify multiple selects on a page.
Must be the same as a variable name in your component which accepts selected items
required
options \<Illuminate\Support\Collection> - Available options. required
selected \<Array,Integer,String> - Used to define selected options on a page loading.
Variable name should be the same as a prop value.
title \<String> - Label title for the select on a page.
multiselect \<Boolean> - Determines if the select is multiple.
showEmptyOption \<Boolean> - Determines if an empty option displays on the select.
Works only for single selects ()
simpleForm \<Boolean> - Determines if a html input should be added to a page.
Useful when a select is placed outside a livewire component, like a html form which makes a regular http request.
parentId \<String> - Determines which component a select belongs to.
Highly recommended to define it when you have more then one level component depth, with the same selects name on each level.
styles \<String> - Classes of the root select wrapper. col-span-1

Additional functionality

You can refresh selected items by calling in your component

You can also refresh available options

Customizing

You can customize a select look by publishing its view

License

The MIT License (MIT). Please see License File for more information.


All versions of livewire-multiselect with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
illuminate/support Version ^7.0|^8.0|^9.0|^10.0
illuminate/database Version ^7.0|^8.0|^9.0|^10.0
livewire/livewire Version ^2.4
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 etdte/livewire-multiselect contains the following files

Loading the files please wait ....