indicalabs/yii2-phone

International telephone validator

Installs: 210

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

dev-master / 1.0.x-dev 2023-09-05 12:53 UTC

This package is auto-updated.

Last update: 2024-05-05 14:06:36 UTC


README

International telephone validator

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist indicalabs/yii2-phone "*"

or add

"indicalabs/yii2-phone": "*"

to the require section of your composer.json file.

Usage

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

<?= $form->field($model, 'mobile_number')->widget(indicalabs\phone\IntlTelWidget::className(),[
												'clientOptions' => [
															'initialCountry' => 'us',
														]		
											]);  ?>```