Download the PHP package openforce/select2-bundle without Composer
On this page you can find all versions of the php package openforce/select2-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download openforce/select2-bundle
More information about openforce/select2-bundle
Files in openforce/select2-bundle
Download openforce/select2-bundle
More information about openforce/select2-bundle
Files in openforce/select2-bundle
Vendor openforce
Package select2-bundle
Short Description symfony select2 entity form type
License MIT
Package select2-bundle
Short Description symfony select2 entity form type
License MIT
Please rate this library. Is it a good library?
Informations about the package select2-bundle
select2-bundle
Introduction
This is a symfony Entity Form Type that supports select2 without using a controller. It's so easy and simple.
Installation
Make sure Composer is installed globally, as explained in the installation chapter of the Composer documentation.
Step 1: Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
Step 2: Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles
in the config/bundles.php
file of your project:
Step 3: Configure twig.yaml file
Step 4: Add select2 to your template
How to use
The main options are:
class
Required. Your target entity.search_field
Required. Entity field name you want to use for your search.choice_label
Optional. Entity field name you want to display on the label. default value is__toString
.max_results
Optional. Number to display on page.filter
Optional. It is callback function. If you use this, you don't need to definesearch_field
.related_fields
Optional. This option allows you to use the values you enter in other fields with thefilter
option.
All versions of select2-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0.8
symfony/form Version ^3.4|^4.0|^5.0
symfony/twig-bundle Version ^3.4|^4.0|^5.0
symfony/http-foundation Version ^3.4|^4.0|^5.0
symfony/form Version ^3.4|^4.0|^5.0
symfony/twig-bundle Version ^3.4|^4.0|^5.0
symfony/http-foundation Version ^3.4|^4.0|^5.0
The package openforce/select2-bundle contains the following files
Loading the files please wait ....