Download the PHP package koff/i18n-form-bundle without Composer
On this page you can find all versions of the php package koff/i18n-form-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download koff/i18n-form-bundle
More information about koff/i18n-form-bundle
Files in koff/i18n-form-bundle
Package i18n-form-bundle
Short Description Translate your doctrine objects easily with some helps
License MIT
Homepage https://github.com/sadikoff/i18n-form-bundle
Informations about the package i18n-form-bundle
koff/i18n-form-bundle
This bundle is fork of a2lix/TranslationFormBundle, reorganized and optimized to work with symfony flex
Requirements
- Symfony flex with Symfony 3.4|4.0
- i18n Doctrine strategy of your choice
- KnpLabs/DoctrineBehaviors with
knplabs/doctrine-behaviors
- Atlantic18/DoctrineExtensions with
stof/doctrine-extensions-bundle
- KnpLabs/DoctrineBehaviors with
Installation
composer req koff/i18n-form-bundle
Configuration
Full configuration example
Usage
Basic example
Advanced example
- [1] Optionnal. If set, override the default value from config.yml
- [2] Optionnal. If set, override the default value from config.yml
- [3] Optionnal. If set, override the auto configuration of fields
- [3.a] Optionnal. - For a field, applied to all locales
- [3.b] Optionnal. - For a specific locale of a field
- [4] Optionnal. Common options of symfony forms (max_length, required, trim, read_only, constraints, ...), which was added 'field_type' and 'display'
Additional
TranslationsFormsType
A different approach for entities which don't share fields untranslated. No strategy used here, only a locale field in your entity.
- [1] Optionnal. If set, override the default value from config.yml
- [2 - Mandatory]. A real form type that you have to do
- [2bis] Optionnal. - An array of options that you can set to your form
TranslatedEntityType
Modified version of the native 'entity' symfony2 form type to translate the label in the current locale by reading translations
- [1] Path of the translatable class
- [2] Property/Method of the translatable class that will be display
- [3] Common options of the 'entity' symfony2 form type (multiple, ...)
Credits
All credits goes to David ALLIX and his a2lix/TranslationFormBundle
License
This package is available under the MIT license.
All versions of i18n-form-bundle with dependencies
doctrine/doctrine-bundle Version ^1.6.10
doctrine/orm Version ^2.5
symfony/config Version ~3.4|~4.0
symfony/dependency-injection Version ~3.4|~4.0
symfony/form Version ~3.4|~4.0
symfony/http-kernel Version ~3.4|~4.0
symfony/twig-bundle Version ~3.4|~4.0