dev-master
9999999-dev https://github.com/isudakoff/yii2-dadata-suggestionsYii2 DaData Suggestions
MIT
The Requires
- php >=7
- yiisoft/yii2 ~2.0.0
by Ilya Sudakov
yii2 address yii suggest suggestion suggestions dadata adres adress addres
Yii2 DaData Suggestions
This extension allows you to easily get tips from service DaData.ru, (*1)
The preferred way to install this extension is through composer., (*2)
Run, (*3)
php composer.phar require --prefer-dist isudakoff/yii2-dadata-suggestions "*"
or add, (*4)
"isudakoff/yii2-dadata-suggestions": "*"
to the require
section of your composer.json., (*5)
Add to config:, (*6)
'components' => [ // ... 'dadata' => [ 'class' => 'isudakoff\dadata\Suggest', 'token' => 'your_token_here', ], ]
Get array of Address where needed, (*7)
$addresses = Yii::$app->dadata->getAddresses('москва проспект мира 10', 10); $street = $addresses[0]->street $city = $addresses[0]->city $country = $addresses[0]->country
Yii2 DaData Suggestions
MIT
yii2 address yii suggest suggestion suggestions dadata adres adress addres