Download the PHP package gupalo/symfony-form-transformers without Composer
On this page you can find all versions of the php package gupalo/symfony-form-transformers. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download gupalo/symfony-form-transformers
More information about gupalo/symfony-form-transformers
Files in gupalo/symfony-form-transformers
Download gupalo/symfony-form-transformers
More information about gupalo/symfony-form-transformers
Files in gupalo/symfony-form-transformers
Vendor gupalo
Package symfony-form-transformers
Short Description Symfony Form Transformers
License MIT
Package symfony-form-transformers
Short Description Symfony Form Transformers
License MIT
Please rate this library. Is it a good library?
Informations about the package symfony-form-transformers
TsvTransformer
Symfony Forms TsvTransformer
How to Install
Install the gupalo/symfony-form-transformers
package using composer:
Transformers
EmptyStringTransformer
: allows user to pass empty fields which should be empty strings instead of nullJsonYamlTransformer
: user views and edits field as YAML but it is stored as JSON in DB and is array in PHPStringArrayTransformer
: user can enter several strings each from new line and they will become an arrayTsvTransformer
: user copy-pastes from spreadsheet and PHP gets array with named keys (multiline and quoting are not supported)
Basic Usage
Add transformers to your forms
Advanced Usage
Some transformers have options on construct. Options are public properties, you can change them later.
See tests
for more examples. Also look at src
- the logic is quite simple.
If you have multiline input Tsv, set TsvHelper::$multiline = true;
All versions of symfony-form-transformers with dependencies
PHP Build Version
Package Version
The package gupalo/symfony-form-transformers contains the following files
Loading the files please wait ....