PHPackages                             lzakrzewski/symfony-form-generator-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. lzakrzewski/symfony-form-generator-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

lzakrzewski/symfony-form-generator-bundle
=========================================

0.0.2(10y ago)117MITPHPPHP &gt;=5.5

Since Dec 8Pushed 10y agoCompare

[ Source](https://github.com/lzakrzewski/SymfonyFormGeneratorBundle)[ Packagist](https://packagist.org/packages/lzakrzewski/symfony-form-generator-bundle)[ RSS](/packages/lzakrzewski-symfony-form-generator-bundle/feed)WikiDiscussions master Synced today

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

Symfony Form Generator Bundle [![Build Status](https://camo.githubusercontent.com/92b3fdef53ec68c2b0b9c7670256fcba8c77581e64ea14e52afab2c65bed9160/68747470733a2f2f7472617669732d63692e6f72672f6c7a616b727a6577736b692f53796d666f6e79466f726d47656e657261746f7242756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/lzakrzewski/SymfonyFormGeneratorBundle) [![Coverage Status](https://camo.githubusercontent.com/1253560ba60cbc77f77725650667c938cf298b98a792f669391370b11861ff2d/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6c7a616b727a6577736b692f53796d666f6e79466f726d47656e657261746f7242756e646c652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/lzakrzewski/SymfonyFormGeneratorBundle?branch=master)
============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#symfony-form-generator-bundle--)

This bundle integrates library [SymfonyFormGenerator](https://github.com/lzakrzewski/SymfonyFormGenerator) with symfony framework.

Example
-------

[](#example)

Object of given class:

```
use Lzakrzewski\SymfonyFormGenerator\Annotation\Form;
use Symfony\Component\Validator\Constraints as Assert;

class ObjectWithMixedMetadata
{
    /**
     * @var bool
     */
    public $propertyBoolean;

    /**
     * @Assert\Count(max="5")
     */
    public $propertyArray;

    /**
     * @Form\Field("integer", options={"label"="Property Integer"})
     */
    public $propertyInteger;

    public $propertyDateTime;

    public $propertyUndefined;

    public function __construct($propertyBoolean, $propertyArray, $propertyInteger, \DateTime $propertyDateTime, $propertyUndefined)
    {
        $this->propertyBoolean   = $propertyBoolean;
        $this->propertyArray     = $propertyArray;
        $this->propertyInteger   = $propertyInteger;
        $this->propertyDateTime  = $propertyDateTime;
        $this->propertyUndefined = $propertyUndefined;
    }
}
```

after:

```
        $form = $this->get('form_generator')
            ->generateFormBuilder(ObjectWithMixedMetadata::class)
            ->getForm();
```

will have `form` equivalent:

```
use Lzakrzewski\SymfonyFormGenerator\Form\Type\GeneratorFormType;
use Lzakrzewski\SymfonyFormGenerator\ObjectWithMixedMetadata;
use Symfony\Component\Form\Forms;

Forms::createFormFactory()->createBuilder()
    ->create('form', new GeneratorFormType(ObjectWithMixedMetadata::class))
    ->add('propertyBoolean', 'checkbox')
    ->add('propertyArray', 'generator_array')
    ->add('propertyInteger', 'integer')
    ->add('propertyDateTime', 'generator_datetime')
    ->add('propertyUndefined', 'generator_string');
```

`generator_array` type extends `collection`, `generator_datetime` type extends `datetime`, `generator_string` type extends `text`.

`generator_*` types are custom form types for better support raw values.

Documentation
-------------

[](#documentation)

Topics:

- [Installation](Resources/doc/installation.md)
- [Usage](Resources/doc/usage.md)
- [Custom mapping](Resources/doc/custom_mapping.md)

Related SymfonyFormGenerator documentation
------------------------------------------

[](#related-symfonyformgenerator-documentation)

- [Supported value objects](https://github.com/Lzakrzewski/SymfonyFormGenerator/blob/master/doc/value_objects.md)
- [Guess priorities](https://github.com/Lzakrzewski/SymfonyFormGenerator/blob/master/doc/guess_priorities.md)
- [Form annotation guess](https://github.com/Lzakrzewski/SymfonyFormGenerator/blob/master/doc/form_annotation_guess.md)
- [PHPDoc comment guess](https://github.com/Lzakrzewski/SymfonyFormGenerator/blob/master/doc/phpdoc_comment_guess.md)
- [Validator guess](https://github.com/Lzakrzewski/SymfonyFormGenerator/blob/master/doc/validator_guess.md)
- [Type hint guess](https://github.com/Lzakrzewski/SymfonyFormGenerator/blob/master/doc/type_hint_guess.md)

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

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 ~60 days

Total

2

Last Release

3796d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4248462?v=4)[Łukasz Zakrzewski](/maintainers/lzakrzewski)[@lzakrzewski](https://github.com/lzakrzewski)

---

Top Contributors

[![lzakrzewski](https://avatars.githubusercontent.com/u/4248462?v=4)](https://github.com/lzakrzewski "lzakrzewski (24 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lzakrzewski-symfony-form-generator-bundle/health.svg)

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

###  Alternatives

[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1175.2k](/packages/rcsofttech-audit-trail-bundle)[symfony/ai-bundle

Integration bundle for Symfony AI components

32642.2k21](/packages/symfony-ai-bundle)[sylius/taxonomy-bundle

Flexible categorization system for Symfony.

26411.5k8](/packages/sylius-taxonomy-bundle)[sylius/inventory-bundle

Flexible inventory management for Symfony applications.

19189.5k5](/packages/sylius-inventory-bundle)[yceruto/formflow-bundle

Create and manage multistep forms

2414.8k](/packages/yceruto-formflow-bundle)

PHPackages © 2026

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