PHPackages                             urichalex/yii2-dadata-widget - 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. urichalex/yii2-dadata-widget

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

urichalex/yii2-dadata-widget
============================

Yii2 Dadata Widget

v1.0.1(4y ago)0229MITPHPPHP ~7.4|~8.0

Since Feb 18Pushed 4y ago1 watchersCompare

[ Source](https://github.com/de-salvatierra/yii2-dadata-widget)[ Packagist](https://packagist.org/packages/urichalex/yii2-dadata-widget)[ RSS](/packages/urichalex-yii2-dadata-widget/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

Widget for using hints of Dadata service.

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

[](#installation)

### 1. Download

[](#1-download)

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

Run the following command:

```
$ composer require urichalex/yii2-dadata-widget
```

### 2. Get api key

[](#2-get-api-key)

Register at [DaData.ru](https://dadata.ru/profile/#info), and get api key.

### 3. Configure (optional)

[](#3-configure-optional)

You can setup container definitions if you do not want to enter api key in every widget. Add following lines to your main configuration file:

```
'container' => [
    'definitions' => [
        \urichalex\yii2Dadata\DadataWidget::class => [
            'apiKey' => 'my-dadata-api-key',
        ],
    ],
],
```

Usage
-----

[](#usage)

```
use urichalex\yii2Dadata\DadataWidget;
```

```
