gietos / dadata
Dadata API client (https://dadata.ru)
Installs: 274 855
Dependents: 1
Suggesters: 0
Security: 0
Stars: 47
Watchers: 3
Forks: 20
Open Issues: 16
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)
- dev-master
- 2.0.x-dev
- v1.2.0
- 1.1.x-dev
- v1.1.18
- v1.1.17
- 1.1.16
- 1.1.15
- 1.1.14
- 1.1.13
- 1.1.12
- 1.1.11
- 1.1.10
- 1.1.9
- 1.1.8
- 1.1.7
- 1.1.6
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.13
- 1.0.12
- 1.0.11
- 1.0.10
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-refactor-abstract-model
- dev-34-phone-number-type
- dev-update-phpunit
- dev-22-suggest-email
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('форд фокус')