2017 © Pedro PelĂĄez
 

symfony-bundle extra-form-bundle

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

image

idci/extra-form-bundle

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  • Thursday, July 5, 2018
  • by idciconsulting
  • Repository
  • 11 Watchers
  • 6 Stars
  • 20,042 Installations
  • CSS
  • 2 Dependents
  • 1 Suggesters
  • 1 Forks
  • 0 Open issues
  • 43 Versions
  • 6 % Grown

The README.md

ExtraFormBundle

ExtraFormBundle is a Symfony bundle that expand existing FormType features to allow dynamic forms generation., (*1)

This bundle provide: * A builder to generate forms from a configuration array. This allow you to configure your forms in any format convertible in an array (yaml, json, etc) and dynamically generate your forms. * A set of extra types (iban, captcha..) ready to use. * An api that exposes all symfony form types as 'extra form types' * An api that exposes all symfony validation constraints as 'extra form constraints', (*2)

SensioLabsInsight Build, (*3)

Installation

Install this bundle using composer:, (*4)

$ php composer require idci/extra-form-bundle:dev-master

Import the bundle configuration:, (*5)

# app/config/config.yml

imports:
    - { resource: '@IDCIExtraFormBundle/Resources/config/config.yml' }

That's it, you are ready to use the extra form builder., (*6)

Use the editor

If you need the api or the editor:, (*7)

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new FOS\RestBundle\FOSRestBundle(),
        new JMS\SerializerBundle\JMSSerializerBundle(),
    );
}

Enable the serializer:, (*8)

# app/config/config.yml

fos_rest:
    param_fetcher_listener: true # if you want to add configured types
    service:
        serializer: jms_serializer.serializer

Import the routes:, (*9)

# app/config/routing.yml
extra_form:
    resource: "@IDCIExtraFormBundle/Controller/"
    type: annotation

Install the assets:, (*10)

php bin/console assets:install --symlink

The editor requires bootstrap and jquery. If you don't use it already in your project, just add the following lines in your views., (*11)

{% block javascripts %}
    {{ parent() }}
    
    <script type="text/javascript" src="{{ asset('bundles/idciextraform/js/vendor/bootstrap.min.js') }}"></script>
{% endblock %}

{% block stylesheets %}
    {{ parent() }}
    <link rel="stylesheet" type="text/css" href="{{ asset('bundles/idciextraform/css/bootstrap.min.css') }}" />
    <link rel="stylesheet" type="text/css" href="{{ asset('bundles/idciextraform/css/bootstrap-theme.min.css') }}" />
{% endlbock %}

Use the configured types

You can register configured types via the editor. It allows you to access types with pre-configured fields., (*12)

Register doctrine bundle in your application kernel:, (*13)

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
    );
}

Then update the doctrine schema. It will create a table to register the configured types in database., (*14)

doctrine:schema:update --force

Documentation

Going further

Tests

We use docker and docker-compose to run the tests, along with a Makefile., (*15)

Install the bundle dev dependencies:, (*16)

$ make composer-update

To execute unit tests:, (*17)

$ make phpunit

The Versions

05/07 2018

3.0.x-dev

3.0.9999999.9999999-dev

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

The Development Requires

configuration form dynamic form type

05/07 2018

v3.0.3

3.0.3.0

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

The Development Requires

configuration form dynamic form type

05/07 2018

dev-master

9999999-dev

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

The Development Requires

configuration form dynamic form type

04/07 2018

dev-fix/travis

dev-fix/travis

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

The Development Requires

configuration form dynamic form type

04/07 2018

dev-feature/recaptcha

dev-feature/recaptcha

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

The Development Requires

configuration form dynamic form type

29/06 2018

dev-fix/symfony-3/collection-event-subscriber

dev-fix/symfony-3/collection-event-subscriber

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

The Development Requires

configuration form dynamic form type

09/04 2018

dev-feature/file-type

dev-feature/file-type

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

The Development Requires

configuration form dynamic form type

09/04 2018

v3.0.2

3.0.2.0

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

The Development Requires

configuration form dynamic form type

20/03 2018

2.0.x-dev

2.0.9999999.9999999-dev

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

The Development Requires

configuration form dynamic form type

20/03 2018

v2.0.8

2.0.8.0

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

The Development Requires

configuration form dynamic form type

20/03 2018

dev-feature/fix-exception-not-found

dev-feature/fix-exception-not-found

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

The Development Requires

configuration form dynamic form type

07/02 2018

v2.0.7

2.0.7.0

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

The Development Requires

configuration form dynamic form type

16/10 2017

v3.0.1

3.0.1.0

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

The Development Requires

configuration form dynamic form type

12/10 2017

1.2.x-dev

1.2.9999999.9999999-dev

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

configuration form dynamic form type

12/10 2017

1.1.x-dev

1.1.9999999.9999999-dev

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

configuration form dynamic form type

12/10 2017

1.0.x-dev

1.0.9999999.9999999-dev

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

configuration form dynamic form type

12/10 2017

v3.0.0

3.0.0.0

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

The Development Requires

configuration form dynamic form type

21/08 2017

v2.0.6

2.0.6.0

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

The Development Requires

configuration form dynamic form type

25/07 2017

v2.0.5

2.0.5.0

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

The Development Requires

configuration form dynamic form type

12/07 2017

v2.0.4

2.0.4.0

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

The Development Requires

configuration form dynamic form type

13/06 2017

v2.0.3

2.0.3.0

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

The Development Requires

configuration form dynamic form type

09/06 2017

v2.0.2

2.0.2.0

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

The Development Requires

configuration form dynamic form type

06/06 2017

v2.0.1

2.0.1.0

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

The Development Requires

configuration form dynamic form type

24/05 2017

dev-travis

dev-travis

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

The Development Requires

configuration form dynamic form type

23/05 2017

v2.0.0

2.0.0.0

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

The Development Requires

configuration form dynamic form type

23/05 2017

dev-fix-json-transformer-for-embeded-twig-array

dev-fix-json-transformer-for-embeded-twig-array

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

The Development Requires

configuration form dynamic form type

23/05 2017

dev-fix-firefox-get-json-line-error

dev-fix-firefox-get-json-line-error

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

The Development Requires

configuration form dynamic form type

17/05 2017

dev-eddie-tags-fixes

dev-eddie-tags-fixes

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

The Development Requires

configuration form dynamic form type

24/04 2017

v1.3.1

1.3.1.0

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

The Development Requires

configuration form dynamic form type

24/04 2017

v1.3.0

1.3.0.0

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

The Development Requires

configuration form dynamic form type

24/04 2017

v1.2.0

1.2.0.0

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

configuration form dynamic form type

08/03 2017

1.3.x-dev

1.3.9999999.9999999-dev

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

The Development Requires

configuration form dynamic form type

07/03 2017

dev-sf2.8

dev-sf2.8

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

The Development Requires

configuration form dynamic form type

06/03 2017

dev-hotfix/extra-form-collection

dev-hotfix/extra-form-collection

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

configuration form dynamic form type

25/01 2017

v1.1.1

1.1.1.0

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

configuration form dynamic form type

25/01 2017

v1.1.0

1.1.0.0

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

configuration form dynamic form type

25/01 2017

v1.0.6

1.0.6.0

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

configuration form dynamic form type

25/01 2017

v1.0.5

1.0.5.0

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

configuration form dynamic form type

25/01 2017

v1.0.4

1.0.4.0

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

configuration form dynamic form type

25/01 2017

v1.0.3

1.0.3.0

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

configuration form dynamic form type

25/01 2017

v1.0.2

1.0.2.0

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

configuration form dynamic form type

25/01 2017

v1.0.1

1.0.1.0

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

configuration form dynamic form type

25/01 2017

v1.0.0

1.0.0.0

Symfony2 bundle that expand existing FormType feature to allow a dynamic form generation

  Sources   Download

MIT

The Requires

 

configuration form dynamic form type