aertrip/yii2-intl-tel-input

intl-tel-input

Installs: 48

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Forks: 0

Type:yii2-extension

1.0.3 2018-11-03 17:38 UTC

This package is not auto-updated.

Last update: 2024-04-25 09:08:49 UTC


README

intl-tel-input

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist aertrip/yii2-intl-tel-input "*"

or add

"aertrip/yii2-intl-tel-input": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<?= \aertrip\intltelinput\IntlTelInput::widget(); ?>

<?= $form->field($model_user, 'attribute')
                            ->widget(IntlTelInput::className(), []) ?>

Client side validation added.