2017 © Pedro Peláez
 

yii2-extension yii2-dadata-suggestions

Yii2 DaData Suggestions

image

isudakoff/yii2-dadata-suggestions

Yii2 DaData Suggestions

  • Friday, February 9, 2018
  • by isudakoff
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Yii2 DaData Suggestions

This extension allows you to easily get tips from service DaData.ru, (*1)

Installation

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)

Usage

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

TBD

  • Add more types of suggestion
  • Add docs

The Versions

09/02 2018

dev-master

9999999-dev https://github.com/isudakoff/yii2-dadata-suggestions

Yii2 DaData Suggestions

  Sources   Download

MIT

The Requires

 

by Ilya Sudakov

yii2 address yii suggest suggestion suggestions dadata adres adress addres