2017 © Pedro Peláez
 

yii2-extension yii2-maskedinput

Masked input extension for the Yii framework

image

yiisoft/yii2-maskedinput

Masked input extension for the Yii framework

  • Thursday, May 3, 2018
  • by cebe
  • Repository
  • 15 Watchers
  • 19 Stars
  • 18 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 1 Versions
  • 6 % Grown

The README.md

This package is deprecated. , (*1)

❌ , (*2)


, (*3)

Yii Framework Masked input widget Extension


This is the Masked Input extension for Yii framework. It provides a masked input widget based on jQuery Input Mask plugin., (*4)

For license information check the LICENSE-file., (*5)

Latest Stable Version Total Downloads Build Status, (*6)

Installation

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

composer require --prefer-dist yiisoft/yii-masked-input

Usage

To use MaskedInput, you must set the [[mask]] property. The following example shows how to use MaskedInput to collect phone numbers:, (*8)

echo MaskedInput::widget([
    'name' => 'phone',
    'mask' => '999-999-9999',
]);

You can also use this widget in an [[ActiveForm]] using the [[ActiveField::widget()|widget()]] method, for example like this:, (*9)

<?= $form
    ->field($model, 'from_date')
    ->widget(Yiisoft\Yii\MaskedInput\MaskedInput::class, [
        'mask' => '999-999-9999',
    ]) ?>

The Versions

03/05 2018

dev-master

9999999-dev

Masked input extension for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

yii2 inputmask masked input