gietos / yii2-dadata
A Yii2 client for Dadata (https://dadata.ru/)
1.0.4
2016-04-08 08:00 UTC
Requires
- php: >=5.3.0
- gietos/dadata: 1.*
- yiisoft/yii2: 2.*
This package is auto-updated.
Last update: 2026-02-22 05:21:59 UTC
README
A PHP library for the DaData.ru REST API
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;