mirkhamidov/yii2-dadata

This package is abandoned and no longer maintained. The author suggests using the m1roff/yii2-dadata package instead.

Handy module for using dadata.ru service

Installs: 649

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

3.0.1 2022-09-08 17:15 UTC

This package is auto-updated.

Last update: 2022-09-08 17:19:24 UTC


README

Подключение

В конфиг файле

'modules' => [
    'dadata' => [
        'class' => 'm1roff\dadata\Module',
        'token' => '',
        'secret' => '',
    ],
],

Использование

Гражданство

$form->field($model, 'citizenship')->widget(SuggestWidget::class, [
    'type' => SuggestWidget::TYPE_CITIZENSHIP,
    'options' => [
        'placeholder' => 'Гражданство',
        'class' => 'form-control input-lg lrr-input',
    ],
])