Download the PHP package itstructure/yii2-field-widgets without Composer
On this page you can find all versions of the php package itstructure/yii2-field-widgets. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download itstructure/yii2-field-widgets
More information about itstructure/yii2-field-widgets
Files in itstructure/yii2-field-widgets
Package yii2-field-widgets
Short Description The form field widgets for Yii2 Framework with multilanguage mode support.
License MIT
Informations about the package yii2-field-widgets
Yii2 Field widgets
Introduction
This is form field's widgets for the Yii2 v2.0.x framework with the next field types:
- text
- textarea
- ckeditor
- ckeditorAdmin
- file
- checkbox
- dropdown
- password
Dependencies
- php >= 7.1
- composer
Installation
Base install
Via composer:
composer require "itstructure/yii2-field-widgets": "~1.2.5"
or in section require of composer.json file set the following:
and command composer install, if you install yii2 project extensions first,
or command composer update, if all yii2 project extensions are already installed.
If you are testing this package from local server directory
In application composer.json file set the repository, like in example:
Here,
yii2-field-widgets - directory name, which has the same directory level like application and contains yii2 field widgets package.
Then run command:
composer require itstructure/yii2-field-widgets:dev-master --prefer-source
Usage
Requirements
That widgets are designed to work in form with an active model, which is inherited from yii\db\ActiveRecord.
Single mode
To use this mode, don't set languageModel. That will be null.
Multilanguage mode
All fields will be with a language postfix:
title_en
description_en
title_ru
description_ru, e t. c.
For this mode it's necessary to have Language model with some of languages records.
Example:
License
Copyright © 2018-2025 Andrey Girnik [email protected].
Licensed under the MIT license. See LICENSE.txt for details.
All versions of yii2-field-widgets with dependencies
yiisoft/yii2 Version ~2.0.0
yiisoft/yii2-bootstrap Version ~2.0.0
itstructure/yii2-ckeditor Version ^1.1.7

