Download the PHP package avoo/serializer-translation without Composer
On this page you can find all versions of the php package avoo/serializer-translation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download avoo/serializer-translation
More information about avoo/serializer-translation
Files in avoo/serializer-translation
Package serializer-translation
Short Description Translation component for JMS Serializer
License MIT
Informations about the package serializer-translation
SerializerTranslation
![Build Status] (https://scrutinizer-ci.com/g/avoo/SerializerTranslation/badges/build.png?b=master) ![Scrutinizer Code Quality] (https://scrutinizer-ci.com/g/avoo/SerializerTranslation/badges/quality-score.png?b=master) ![Latest Stable Version] (https://poser.pugx.org/avoo/serializer-translation/v/stable.svg) ![License] (https://poser.pugx.org/avoo/serializer-translation/license.svg)
This is a PHP library based on JMS Serializer, and add translation option configuration for any properties.
- Installation
- Default Usage
- With custom parameters
- XML
- YAML
- Annotations
Installation
Require avoo/serializer-translation-bundle
into your composer.json
file:
Register the bundle in app/AppKernel.php
:
Default Configuration
Default Usage
For example, you want to translate acme.foo.bar
from BDD.
Default activation
Into your translation file:
YAML
Annotations
Important: The annotation need to be defined.
Json output sample
With custom parameters
With custom parameters
Into your translation file:
XML
YAML
Annotations
Json output sample
License
This bundle is released under the MIT license. See the complete license in the bundle: