2017 © Pedro Peláez
 

yii2-extension yii2-form-widgets

Yii2 widgets for form fields

image

mrssoft/yii2-form-widgets

Yii2 widgets for form fields

  • Tuesday, May 15, 2018
  • by mrs2000
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 400 % Grown

The README.md

Yii2 Form Widgets

Latest Stable Version PHP Total Downloads, (*1)

Yii2 widgets for form fields, (*2)

Input widgets: - PasswordRevealWidget - PhoneInputWidget - MaskedPhoneInputWidget, (*3)

Validators: - PhoneValidator, (*4)

Installation

The preferred way to install this extension is through composer., (*5)

Either run, (*6)

php composer.phar require --prefer-dist mrssofy/yii2-form-widgets "~2.0"

or add, (*7)

"mrssofy/yii2-form-widgets": "~2.0"

to the require section of your composer.json file., (*8)

Usage

Once the extension is installed, simply use it in your code by:, (*9)

$form->field($order, 'name')->widget(NameInputWidget::class);
$form->field($order, 'phone')->widget(PhoneInputWidget::class);
$form->field($order, 'password')->widget(PasswordRevealWidget::class);
public function rules()
{
    return [
        [['phone'], 'required'],
        [['phone'], PhoneValidator::class, 'returnLenght' => 10],
        ...
    ];
}

The Versions

15/05 2018

dev-master

9999999-dev

Yii2 widgets for form fields

  Sources   Download

MIT

The Requires

 

by Avatar mrs2000

extension yii2 widget

15/05 2018

1.0.1

1.0.1.0

Yii2 widgets for form fields

  Sources   Download

MIT

The Requires

 

by Avatar mrs2000

extension yii2 widget