2017 © Pedro Peláez
 

yii2-extension yii2-dadata

Components for working with Dadata

image

mrssoft/yii2-dadata

Components for working with Dadata

  • Tuesday, May 8, 2018
  • by mrs2000
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

DaData Yii2 Input Widget

Components for working with Dadata, (*1)

Latest Stable Version PHP Github Total Downloads, (*2)

DaData API, (*3)

Installation

The preferred way to install this extension is through composer. Either run, (*4)

php composer.phar require --prefer-dist mrssoft/yii2-dadata "*"

or add, (*5)

"mrssoft/yii2-dadata": "*"

to the require section of your composer.json file., (*6)

Usage

echo DaDataInputWidget::widget([
    'name' => 'name',
    'options' => [
        'class' => 'form-control',
        'placeholder' => 'you placeholder'
    ],
    'clientOptions' => [
        'token' => 'you token',
        'count' => 5,
        'type' => DaDataInputWidget::TYPE_PARTY,
    ],
    'clientEvents' => [
        'onSelect' => new \yii\web\JsExpression('function (suggestion) {
            console.log(suggestion);
        }')            
    ]
]);
$ipLocate = new DaDataIpLocate(['token' => '...']);

$response = $ipLocate->address();
//or
$response = $ipLocate->address($ip);

The Versions

08/05 2018

dev-master

9999999-dev

Components for working with Dadata

  Sources   Download

MIT

The Requires

 

by Melnikov Ruslan

yii suggestions dadata

07/05 2018

1.0.0

1.0.0.0

Components for working with Dadata

  Sources   Download

MIT

The Requires

 

by Melnikov Ruslan

yii suggestions dadata