Download the PHP package rkit/translation-behavior-yii2 without Composer
On this page you can find all versions of the php package rkit/translation-behavior-yii2. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download rkit/translation-behavior-yii2
More information about rkit/translation-behavior-yii2
Files in rkit/translation-behavior-yii2
Download rkit/translation-behavior-yii2
More information about rkit/translation-behavior-yii2
Files in rkit/translation-behavior-yii2
Vendor rkit
Package translation-behavior-yii2
Short Description Translation Behavior for Yii2
License MIT
Homepage https://github.com/rkit/translation-behavior-yii2
Package translation-behavior-yii2
Short Description Translation Behavior for Yii2
License MIT
Homepage https://github.com/rkit/translation-behavior-yii2
Please rate this library. Is it a good library?
Informations about the package translation-behavior-yii2
Translation Behavior for Yii2
Requirements
PHP 7
Installation
Configuration
For example, we have a Post
model and we want to add translation capability.
Let's do it.
-
Add a
post_translation
table and aPostTranslation
model for the translation -
Add a
TranslationBehavior
behavior to thePost
model - Add
translation
andtranslations
relations (seerelationOne
andrelationMany
options in the behavior)
Usage
Load translation
Get translation
For current language
All translation
Remove translation
Tests
- See docs
Coding Standard
- PHP Code Sniffer (phpcs.xml)
All versions of translation-behavior-yii2 with dependencies
PHP Build Version
Package Version
Requires
yiisoft/yii2 Version
^2.0.0, !=2.0.15.1
The package rkit/translation-behavior-yii2 contains the following files
Loading the files please wait ....