gietos/yii2-dadata

A Yii2 client for Dadata (https://dadata.ru/)

Installs: 28 783

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 2

Forks: 2

Open Issues: 0

Type:yii2-extension

1.0.4 2016-04-08 08:00 UTC

This package is auto-updated.

Last update: 2024-11-22 02:37:48 UTC


README

A PHP library for the DaData.ru REST API

Latest Stable Version Total Downloads License

API documentation

Installation

The suggested installation method is via composer:

composer require gietos/yii2-dadata

Usage

In config:

'components' => [
    // ...
    'dadata' => [
        'class' => '\gietos\yii\Dadata\Client',
        'token' => '...',
        'secret' => '...',
    ],
],

Example usage:

use gietos\yii\Dadata\Client;

/** @var Client $client */
$client = \Yii::$app->dadata;

$address = $client->cleanAddress('msk, tverskaya, 1');
echo 'Result: ' . $address->result . PHP_EOL;

More documentation