PHPackages                             antona/form-collection-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. antona/form-collection-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

antona/form-collection-bundle
=============================

Symfony bundle to build forms with Onlinq Form Collection web components

1.0(4mo ago)02MITTwig

Since Feb 11Pushed 4mo agoCompare

[ Source](https://github.com/AntonA46/form-collection-bundle)[ Packagist](https://packagist.org/packages/antona/form-collection-bundle)[ RSS](/packages/antona-form-collection-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Onlinq Form Collection Bundle
=============================

[](#onlinq-form-collection-bundle)

Symfony bundle to build forms with [Onlinq Form Collection](https://github.com/onlinq/form-collection) web components.

It allows [form collections](https://symfony.com/doc/current/form/form_collections.html) to be manipulated through JavaScript and customizable buttons.

Installation
------------

[](#installation)

Onlinq Form Collection Bundle requires PHP 7.2+ and Symfony 4.4+.

Install this bundle using Composer and Symfony Flex:

```
composer require antona/form-collection-bundle
```

The easiest way to enable the Onlinq Form Collection web components in forms is by adding one of the [built-in form themes](#built-in-form-themes) to the project's Twig configuration:

```
# config/packages/twig.yaml

twig:
    form_themes:
        - '@OnlinqFormCollection/collection_theme.html.twig'
```

Make sure to add the Onlinq Form Collection script to pages with forms through a [JavaScript bundler](#using-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](./docs).

Usage
-----

[](#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`](https://symfony.com/doc/current/reference/forms/types/collection.html) class:

```
// ...
use Onlinq\FormCollectionBundle\Form\OnlinqCollectionType;

class TaskType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options)
    {
        $builder
            // ...
            ->add('tags', OnlinqCollectionType::class, [
                'entry_type' => TagType::class,
                'entry_options' => ['label' => false],
                'allow_add' => true,
                'allow_delete' => true,
                'allow_move' => true,
            ])
            // ...
        ;
    }

    // ...
}
```

### Built-in form themes

[](#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](./docs/getting-started.md#collection-form-themes).

### Using a JavaScript bundler

[](#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:

```
npm install @onlinq/form-collection
```

Import the package in the project's JavaScript assets:

```
// assets/js/app.js

import '@onlinq/form-collection';
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance74

Regular maintenance activity

Popularity2

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 90.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

142d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0daec8e1818098c38ca37885be0ba19820d333f0af0e98fbb1f1d8eceb36a205?d=identicon)[AntonA46](/maintainers/AntonA46)

---

Top Contributors

[![codedmonkey](https://avatars.githubusercontent.com/u/203651?v=4)](https://github.com/codedmonkey "codedmonkey (28 commits)")[![AntonA46](https://avatars.githubusercontent.com/u/53582249?v=4)](https://github.com/AntonA46 "AntonA46 (3 commits)")

---

Tags

form-collection

### Embed Badge

![Health badge](/badges/antona-form-collection-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/antona-form-collection-bundle/health.svg)](https://phpackages.com/packages/antona-form-collection-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[symfony/web-profiler-bundle

Provides a development tool that gives detailed information about the execution of any request

2.3k160.5M1.2k](/packages/symfony-web-profiler-bundle)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.9M737](/packages/sylius-sylius)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)[kimai/kimai

Kimai - Time Tracking

4.8k9.0k1](/packages/kimai-kimai)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.1k17.8k](/packages/prestashop-prestashop)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
