gietos / dadata
This package is abandoned and no longer maintained.
The author suggests using the kstkn/dadata package instead.
Dadata API client (https://dadata.ru)
v1.2.0
2020-03-11 07:15 UTC
Requires
- php: >=7.1
- ext-json: *
- doctrine/collections: ^1.4
- doctrine/inflector: ^1.2
- psr/http-client: ^1.0
- psr/http-factory: ^1.0
Requires (Dev)
This package is auto-updated.
Last update: 2020-10-30 18:21:58 UTC
README
Non-official PHP library for the DaData.ru REST API
Installation
The suggested installation method is via composer:
composer require kstkn/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('форд фокус')