Skip to content

kstkn/yii2-dadata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yii2 Dadata API client

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

About

Yii 2 binding for gietos/dadata

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages