Download the PHP package pugx/formable without Composer
On this page you can find all versions of the php package pugx/formable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download pugx/formable
More information about pugx/formable
Files in pugx/formable
Download pugx/formable
More information about pugx/formable
Files in pugx/formable
Please rate this library. Is it a good library?
Informations about the package formable
Formable Symfony Bundle
Why?
Because the cleanest way to transfer data from a web request to the domain is by using DTOs.
For simple DTOs Symfony forces you to create 2 classes, the FormType
class and the SomethingDTO
class.
How?
This Bundle allows you to describe DTOs by the annotation @Formable()
. Let's see an example.
Example
The Data Transfer Object
Embedded DTOs
The Controller
The annotation in depth
The @Formable()
annotation follows the Symfony\Component\Form\FormBuilderInterface
interface.
ARGUMENTS:
- name: [string] the field name
- dataType: [string] the FormType
- options: [array] the FormType options
Installation
composer require pugx/formable
Run tests
bin/test
All versions of formable with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4
symfony/form Version ^2.3
symfony/framework-bundle Version ^2.3
symfony/validator Version ^2.3
symfony/form Version ^2.3
symfony/framework-bundle Version ^2.3
symfony/validator Version ^2.3
The package pugx/formable contains the following files
Loading the files please wait ....