Download the PHP package onlinq/form-collection-bundle without Composer
On this page you can find all versions of the php package onlinq/form-collection-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download onlinq/form-collection-bundle
More information about onlinq/form-collection-bundle
Files in onlinq/form-collection-bundle
Package form-collection-bundle
Short Description Symfony bundle to build forms with Onlinq Form Collection web components
License MIT
Informations about the package form-collection-bundle
Onlinq Form Collection Bundle
Symfony bundle to build forms with Onlinq Form Collection web components.
It allows form collections to be manipulated through JavaScript and customizable buttons.
Installation
Onlinq Form Collection Bundle requires PHP 7.2+ and Symfony 4.4+.
Install this bundle using Composer and Symfony Flex:
The easiest way to enable the Onlinq Form Collection web components in forms is by adding one of the built-in form themes to the project's Twig configuration:
Make sure to add the Onlinq Form Collection script to pages with forms through a JavaScript bundler or by including it at the bottom of your page with:
Read on to start using the bundle immediately or visit the documentation.
Usage
The Onlinq Form Collection web components are enabled when a compatible form
theme has been loaded. The easiest way to configure the resulting form
collection is by using the built-in form type that can be used as a drop-in
replacement for the Symfony CollectionType
class:
Built-in form themes
The bundle includes multiple built-in form themes to make collections look great without having to create your own styling:
@OnlinqFormCollection/collection_theme.html.twig
@OnlinqFormCollection/bootstrap_4_collection_theme.html.twig
@OnlinqFormCollection/bootstrap_5_collection_theme.html.twig
Learn more about the built-in form themes in the documentation.
Using a JavaScript bundler
When using a bundler like Webpack it's possible to include the Onlinq Form Collection web components through the compiled JavaScript bundle.
Install the Onlinq Form Collection web components package:
Import the package in the project's JavaScript assets:
All versions of form-collection-bundle with dependencies
symfony/framework-bundle Version ^4.4|^5.0|^6.0
symfony/twig-bundle Version ^4.4|^5.0|^6.0