Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. jQuery
  3. symfony-collection

symfony-collection

MITJavaScript

A jQuery plugin for managing dynamic form collections in Symfony applications with add, delete, move, and drag-drop functionality.

Visit WebsiteGitHubGitHub
438 stars86 forks0 contributors

What is symfony-collection?

Symfony Collection is a jQuery plugin that manages dynamic form collections in Symfony applications. It provides an interface for adding, deleting, moving, and reordering collection elements while handling the underlying field name updates and DOM manipulation required by Symfony's form system.

Target Audience

Symfony developers building forms with dynamic collections, such as multi-field inputs, nested forms, or repeatable sections that require user interaction for management.

Value Proposition

It simplifies the complex JavaScript needed to manage Symfony form collections, offering drag-drop support, customizable buttons, and seamless integration with Symfony's form themes and Doctrine entities.

Overview

[NOT MAINTAINED] A jQuery plugin that manages adding, deleting and moving elements from a Symfony form collection

Use Cases

Best For

  • Managing dynamic form collections in Symfony applications
  • Implementing drag-and-drop reordering for form elements
  • Building nested or multi-level form collections
  • Creating repeatable input sections with add/remove functionality
  • Integrating position-aware collections with Doctrine entities
  • Customizing form collection UI with Twig templates

Not Ideal For

  • Projects using modern JavaScript frameworks like React or Vue.js, as it's tightly coupled with jQuery and Symfony's form system.
  • Applications requiring zero client-side JavaScript or full server-side rendering, since the plugin depends on jQuery for dynamic interactions.
  • Teams seeking a lightweight, framework-agnostic solution, due to its dependencies on jQuery and Symfony-specific integration.
  • High-performance web apps where minimizing JavaScript overhead is critical, given jQuery's size and the plugin's DOM manipulation.

Pros & Cons

Pros

Seamless Symfony Integration

Automatically handles field name updates and DOM manipulation aligned with Symfony's form collections, reducing the need for custom JavaScript as described in the basic usage section.

Flexible UI Customization

Allows full control over button placement, styling, and behavior through configuration options and Twig themes, with examples for custom layouts and drag-drop support.

Drag-and-Drop Reordering

Integrates with jQuery UI for intuitive reordering when available, including customizable sortable options via the drag_drop_settings.

Event Hooks for Logic

Provides before/after callbacks for add, remove, and move operations, enabling custom validation or side effects without modifying core plugin code.

Cons

jQuery Dependency

Requires jQuery and optionally jQuery UI, adding bloat and compatibility issues for modern projects using lighter libraries or framework-specific tools.

Complex Advanced Setup

Configuring nested collections or custom form themes involves multiple steps, careful selector management, and manual file placement, as highlighted in the installation and advanced usage sections.

Symfony-Limited Scope

Designed exclusively for Symfony applications, making it unusable with other PHP frameworks or non-PHP projects without significant adaptation.

Frequently Asked Questions

Quick Stats

Stars438
Forks86
Contributors0
Open Issues49
Last commit4 years ago
CreatedSince 2015

Tags

#dynamic-forms#jquery-plugin#collection#doctrine#frontend#twig#web-development#symfony#form-management

Built With

D
Doctrine
j
jQuery
T
Twig
S
Symfony

Links & Resources

Website

Included in

jQuery978
Auto-fetched 7 hours ago

Related Projects

jquery-ui-railsjquery-ui-rails

jQuery UI for the Rails asset pipeline

Stars1,121
Forks241
Last commit1 year ago
jquery-railsjquery-rails

A gem to automate using jQuery with Rails

Stars943
Forks408
Last commit9 months ago
PHP front end setup without NodePHP front end setup without Node

Tutorial how to combine BowerPHP, Mini-Asset and Robo.li into a PHP front end asset building pipeline

Stars0
Forks0
Last commit
cheeriocheerio

jQuery for server-side manipulations. It makes possible to construct jQuery instance from HTML string then query and manipulate it. Does not implement ajax and effects API

Stars0
Forks0
Last commit
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub