Download the PHP package trt/formable without Composer
On this page you can find all versions of the php package trt/formable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package formable
This package is abandoned and no longer maintained. The author suggests using the https://github.com/PUGX/formable package instead.
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 trt/formable
Run tests
bin/test
All versions of formable with dependencies
PHP Build Version
Package Version
Requires
symfony/form Version
^2.3
symfony/framework-bundle Version ^2.3
symfony/validator Version ^2.3
symfony/framework-bundle Version ^2.3
symfony/validator Version ^2.3
The package trt/formable contains the following files
Loading the files please wait ....