PHPackages                             moriony/dadata-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. moriony/dadata-client

ActiveLibrary[API Development](/categories/api)

moriony/dadata-client
=====================

1483PHP

Since May 27Pushed 10y ago1 watchersCompare

[ Source](https://github.com/moriony/dadata-client)[ Packagist](https://packagist.org/packages/moriony/dadata-client)[ RSS](/packages/moriony-dadata-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Dadata.ru API Client
====================

[](#dadataru-api-client)

[Dadata.ru](http://dadata.ru) API client based on Guzzle 5.

How to use
----------

[](#how-to-use)

Add this code into your project. Use yours `token` and `secret` provided by [dadata.ru](http://dadata.ru)

```
$factory = new \Moriony\Dadata\Factory();
$client = $factory->createClient([
    'token' => '***auth token here***',
    'secret' => '***secret key here***'
]);
```

Now client is ready to use.

### Data clean

[](#data-clean)

See full code [here](/examples/clean.php).

```
$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("форд фокус");
```

### Multiply data clean

[](#multiply-data-clean)

```
$response = $client->cleanAddresses([
    "мск сухонска 11/-89",
    "воронеж лизюкова 16",
]);
```

Installing
----------

[](#installing)

This project can be installed using Composer. Add the following to your composer.json:

```
{
    "require": {
        "moriony/dadata-client": "dev-master"
    }
}
```

Todo
----

[](#todo)

- clean structure
- geo location
- suggests
- other api methods
- automated testing

Links
-----

[](#links)

- [Dadata Symfony 2 Bundle](https://github.com/moriony/dadata-bundle)
- [Dadata.ru API documantation](https://dadata.ru/api/)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/fd9a799b87d152a1af81ff3093367b5d91771d6b9703ac9399730f1b14ebbedf?d=identicon)[moriony](/maintainers/moriony)

---

Top Contributors

[![moriony](https://avatars.githubusercontent.com/u/1702031?v=4)](https://github.com/moriony "moriony (16 commits)")

### Embed Badge

![Health badge](/badges/moriony-dadata-client/health.svg)

```
[![Health](https://phpackages.com/badges/moriony-dadata-client/health.svg)](https://phpackages.com/packages/moriony-dadata-client)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
