PHPackages                             sauberdigital/dynamic-forms-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. sauberdigital/dynamic-forms-bundle

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

sauberdigital/dynamic-forms-bundle
==================================

A powerful Symfony bundle that simplifies the creation of dynamic form fields

v1.1.0(9mo ago)061MITPHPPHP &gt;=8.2CI passing

Since Aug 8Pushed 9mo agoCompare

[ Source](https://github.com/sauberdigital/dynamic-forms-bundle)[ Packagist](https://packagist.org/packages/sauberdigital/dynamic-forms-bundle)[ Docs](https://sauberdigital.de)[ RSS](/packages/sauberdigital-dynamic-forms-bundle/feed)WikiDiscussions main Synced 1mo ago

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

Dynamic Forms Bundle for Symfony
================================

[](#dynamic-forms-bundle-for-symfony)

[![CI](https://github.com/sauberdigital/dynamic-forms-bundle/actions/workflows/ci.yml/badge.svg)](https://github.com/sauberdigital/dynamic-forms-bundle/actions/workflows/ci.yml)[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)

A powerful Symfony bundle that simplifies the creation of dynamic form fields with dependencies. This bundle leverages Symfony's form lifecycle events to provide seamless field dependency management **without JavaScript**.

Features
--------

[](#features)

- **Dynamic Field Dependencies**: Create fields that depend on other form fields
- **Multiple Dependencies**: Fields can depend on multiple parent fields
- **Nested Dependencies**: Support for complex dependency chains (A → B → C → D)
- **Circular Dependency Detection**: Prevents infinite loops in field dependencies
- **Form Lifecycle Integration**: Uses Symfony's `FormEvents::POST_SUBMIT` for optimal performance
- **No JavaScript Required**: Works entirely through Symfony form events
- **Type Safe**: Full PHP 8.2+ type hints and modern language features

Requirements
------------

[](#requirements)

- PHP **8.2+**
- Symfony **7.2+**

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

[](#installation)

```
composer require sauberdigital/dynamic-forms-bundle
```

If you're using Symfony Flex, the bundle will be automatically enabled. Otherwise, add the bundle to your `config/bundles.php`:

```
