PHP code example of m1roff / yii2-dadata

1. Go to this page and download the library: Download m1roff/yii2-dadata library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

m1roff / yii2-dadata example snippets


'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',
    ],
])