rocknroi / dadata-yii2
Dadata API client (https://dadata.ru) Add cache
dev-master
2017-09-22 14:25 UTC
Requires
- php: >=5.5.0
- guzzlehttp/guzzle: ^6.2
This package is auto-updated.
Last update: 2024-05-29 03:56:47 UTC
README
Description!
Standatr api and cache
Install
php composer.phar require rocknroi/dadata-yii2
Usage
$client = new Dadata\Client(new \GuzzleHttp\Client(), [
'token' => '...',
'secret' => '...',
]);
Clean
$response = $client->cleanAddress('мск сухонска 11/-89');
$response = $client->cleanPhone('тел 7165219 доб139');
$response = $client->cleanPassport('4509 235857');
$response = $client->cleanName('Срегей владимерович иванов');
$response = $client->cleanEmail('serega@yandex/ru');
$response = $client->cleanDate('24/3/12');
$response = $client->cleanVehicle('форд фокус')