Download the PHP package idci/extra-form-bundle without Composer
On this page you can find all versions of the php package idci/extra-form-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download idci/extra-form-bundle
More information about idci/extra-form-bundle
Files in idci/extra-form-bundle
Package extra-form-bundle
Short Description Symfony bundle that expand existing FormType feature to allow a dynamic form generation
License MIT
Informations about the package extra-form-bundle
ExtraFormBundle
ExtraFormBundle is a Symfony bundle that expand existing FormType features to allow dynamic forms generation.
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'
Installation
Install this bundle using composer:
Import the bundle configuration:
That's it, you are ready to use the extra form builder.
Use the editor
If you need the api or the editor:
Enable the serializer:
Import the routes:
Install the assets:
The editor requires bootstrap and jquery. If you don't use it already in your project, just add the following lines in your views.
Use the configured types
You can register configured types via the editor. It allows you to access types with pre-configured fields.
Register doctrine bundle in your application kernel:
Then update the doctrine schema. It will create a table to register the configured types in database.
Documentation
- Usage
- Extra form types
- Extra form constraints
Going further
- Api
- ExtraFormBuilderType
- ConfigurationFetcher
- Architecture
Tests
We use docker and docker-compose to run the tests, along with a Makefile.
Install the bundle dev dependencies:
To execute unit tests:
All versions of extra-form-bundle with dependencies
google/recaptcha Version ^1.1
gregwar/captcha-bundle Version ~2.0
jms/serializer-bundle Version >=1.1
symfony/dependency-injection Version ^4.4|^5.3|^6.0
symfony/event-dispatcher Version ^4.4|^5.3|^6.0
symfony/form Version ^4.4|^5.3|^6.0
symfony/http-foundation Version ^4.4|^5.3|^6.0
symfony/http-kernel Version ^4.4|^5.3|^6.0
symfony/options-resolver Version ^4.4|^5.3|^6.0
symfony/security-bundle Version ^4.4|^5.3|^6.0
symfony/translation Version ^4.4|^5.3|^6.0
symfony/validator Version ^4.4|^5.3|^6.0
friendsofsymfony/rest-bundle Version >=2.5