truth4oll / dadata-api
dev-master
2015-10-10 09:54 UTC
Requires
- php: >=5.4.0
- yiisoft/yii2-httpclient: ~2.0.0
This package is not auto-updated.
Last update: 2024-05-21 01:40:44 UTC
README
Dadata.ru API client based on HTTP Client Extension for Yii 2.
How to use
Add this code into your project. Use yours token
and secret
provided by dadata.ru
$client = new DadataClient( [ 'token' => token, 'secret' => secret, ] );
Now client is ready to use.
Data clean
$response = $client->cleanAddress('< address >');
Installing
This project can be installed using Composer. Add the following to your composer.json:
{ "require": { "truth4oll/dadata-api": "dev-master" } }