PHPackages                             kakadu-dev/yii2-phone-input - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. kakadu-dev/yii2-phone-input

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

kakadu-dev/yii2-phone-input
===========================

Add mask to phone input

010PHP

Since Aug 14Pushed 7y ago2 watchersCompare

[ Source](https://github.com/kakadu-dev/yii2-phone-input)[ Packagist](https://packagist.org/packages/kakadu-dev/yii2-phone-input)[ RSS](/packages/kakadu-dev-yii2-phone-input/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 phone input widget
=======================

[](#yii2-phone-input-widget)

Add phone mask to input.

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist matthew-p/yii2-phone-input "@dev"

```

or add

```
"kakadu-dev/yii2-phone-input": "@dev"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

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

```
```

Add action in controller (only for gridview sorting):

```
