Skip to content
A PHP library for the DaData.ru REST API
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
tests Fix codestyle and styleci config Oct 31, 2018
.gitignore Update to use PSR-18; Update tests Oct 30, 2018
.styleci.yml Fix codestyle and styleci config Oct 31, 2018
.travis.yml Merge branch 'master' into psr-18 Oct 30, 2018
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md Oct 26, 2017
LICENSE Fix cleanDate method Sep 29, 2016
README.md Add vehicle standardization method Dec 19, 2016
_config.yml
composer.json
phpunit.xml.dist

README.md

Dadata API client

Non-official PHP library for the DaData.ru REST API

Latest Stable Version Total Downloads License

API documentation

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('форд фокус')
You can’t perform that action at this time.