m1roff/yii2-dadata

Handy module for using dadata.ru service

Installs: 520

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: 2024-12-08 23:02:33 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',
    ],
])