PHPackages                             wuestkamp/alterable-form-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. wuestkamp/alterable-form-bundle

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

wuestkamp/alterable-form-bundle
===============================

Allows Symfony Forms to be altered based on YAML configuration files

0.2(7y ago)01.2kMITPHPPHP &gt;=5.6

Since Aug 24Pushed 7y ago1 watchersCompare

[ Source](https://github.com/wuestkamp/alterable-form-bundle)[ Packagist](https://packagist.org/packages/wuestkamp/alterable-form-bundle)[ RSS](/packages/wuestkamp-alterable-form-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (6)Versions (7)Used By (0)

Alterable Form Bundle
=====================

[](#alterable-form-bundle)

This bundle lets you alter **existing** Symfony Forms based on yml config values. If you want to create forms dynamically from yml check out [LinioIT/dynamic-form-bundle](https://github.com/LinioIT/dynamic-form-bundle).

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

[](#installation)

This plugin requires Symfony `^2.8|^3.0|^4.0`

```
{
    "require": {
        "wuestkamp/alterable-form-bundle": "^0.2"
    }
}
```

**for SF &lt; 4.0**

Add the bundle to your `AppKernel.php`

```
new Wuestkamp\AlterableFormBundle\AlterableFormBundle();
```

If you are using 2.8 you need to create your forms (which you want to alter) using the classname like this instead of a name string to be able to use this bundle:

```
$form = $this->createForm(MyForm::class, $myObject);
```

**for SF &gt;= 4.0**

Add this to `config/bundles.php`:

```
\Wuestkamp\AlterableFormBundle\AlterableFormBundle::class => ['all' => true],

```

create file `config/packages/alterable_form.yml`.

Usage
-----

[](#usage)

Define yml configuration like this:

```
alterable_form:
    forms:
        Namespace\Bundle\Form\MyForm:
            fields:
                first_name:
                    options:
                        required: false
                last_name:
                    add: false # default is true
        Namespace\Bundle\Form\MyOtherForm:
            fields:
                email:
                    options:
                        attr: {class: 'css_class'}
```

Tests
-----

[](#tests)

Git clone this repo then `composer install` and `./vendor/phpunit/phpunit/phpunit -c .`

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Every ~2 days

Total

5

Last Release

2805d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b45993e5dba8eaa26bebcdd06c1c6bf51d55646b95caa0b17b0908fbcfc1dddb?d=identicon)[wuestkamp](/maintainers/wuestkamp)

---

Top Contributors

[![wuestkamp](https://avatars.githubusercontent.com/u/1220600?v=4)](https://github.com/wuestkamp "wuestkamp (20 commits)")

---

Tags

symfonySymfony2Formsconfigurablechangeablealterable

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/wuestkamp-alterable-form-bundle/health.svg)

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

###  Alternatives

[aws/aws-sdk-php-symfony

A Symfony bundle for v3 of the AWS SDK for PHP

36517.7M22](/packages/aws-aws-sdk-php-symfony)[symfonycasts/dynamic-forms

Add dynamic/dependent fields to Symfony forms

1412.1M10](/packages/symfonycasts-dynamic-forms)[maba/webpack-bundle

Bundle to Integrate Webpack to Symfony

123268.2k4](/packages/maba-webpack-bundle)[jbtronics/settings-bundle

A symfony bundle to easily create typesafe, user-configurable settings for symfony applications

9546.7k2](/packages/jbtronics-settings-bundle)[blackknight467/star-rating-bundle

Star Rating Bundle for use with Symfony 2 using Font Awesome. This bundle adds the 'rating' form type and rating filter to render ratings. Simple and easy to use.

27198.0k](/packages/blackknight467-star-rating-bundle)

PHPackages © 2026

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