pecherskiy-v / dadata
Dadata API client (https://dadata.ru)
1.1.17
2019-03-31 00:02 UTC
Requires
- php: >=5.5.0
- guzzlehttp/guzzle: ^6.2
This package is auto-updated.
Last update: 2026-05-29 01:36:16 UTC
README
Non-official PHP library for the DaData.ru REST API
Installation
The suggested installation method is via composer:
composer require gietos/dadata
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('форд фокус')