PHPackages                             hamasakibrain/laravel-dadata - 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. hamasakibrain/laravel-dadata

ActivePackage

hamasakibrain/laravel-dadata
============================

Dadata API client (https://dadata.ru)

v1(3y ago)098↓100%MITPHPPHP &gt;=5.5.0

Since Apr 13Pushed 3y ago1 watchersCompare

[ Source](https://github.com/HamasakiBrain/dadata)[ Packagist](https://packagist.org/packages/hamasakibrain/laravel-dadata)[ RSS](/packages/hamasakibrain-laravel-dadata/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Laravel DaData
==============

[](#laravel-dadata)

Пакет работы с сервисом \[DaData.ru\], для исправления синтаксических ошибок в информации контактных данных клиентов сайта и вывода подсказок поля форм.

Установка
---------

[](#установка)

Запустить:

```
composer require "HamasakiBrain/laravel-dadata"
```

---

**Для Laravel &lt; 5.5:**Зарегистрировать service-provider в config/app.php:

```
  HamasakiBrain\Dadata\DadataServiceProvider::class,
```

Для Lumen добавить в bootstrap/app.php:

```
$app->withFacades();
```

---

Опубликовать конфиг:

```
php artisan vendor:publish --provider="HamasakiBrain\Dadata\DadataServiceProvider"
```

Задать токет (и ключ для API стандартизации) в `config/dadata.php` или `.env`

```
    'token' => env('DADATA_TOKEN', ''),
    'secret' => env('DADATA_SECRET', ''),
```

Использование
-------------

[](#использование)

### Сервис подсказок ()

[](#сервис-подсказок-httpsdadataruapisuggest)

Добавить в клас фасад:

```
use HamasakiBrain\Dadata\Facades\DadataSuggest;
```

1. Пример использование метода с параметрамы:

    ```
    $result = DadataSuggest::suggest("address", ["query"=>"Москва", "count"=>2]);
    print_r($result);
    ```

    Первым параметором может быть: `fio, address, party, email, bank`
2. Пример использование [поиска по ИНН или ОГРН](https://dadata.ru/api/find-party/) с параметрамы:

    ```
    $result = DadataSuggest::partyById('5077746329876', ["branch_type"=>"MAIN"]);
    print_r($result);
    ```

    Первым параметором может быть ИНН, ОГРН или Dadata HID

### Сервис стандартизации ()

[](#сервис-стандартизации-httpsdadataruapiclean)

Добавить в клас фасад:

```
use HamasakiBrain\Dadata\Facades\DadataClean;
```

Использовать методы:

```
$response = DadataClean::cleanAddress('мск сухонска 11/-89');
$response = DadataClean::cleanPhone('тел 7165219 доб139');
$response = DadataClean::cleanPassport('4509 235857');
$response = DadataClean::cleanName('Срегей владимерович иванов');
$response = DadataClean::cleanEmail('serega@yandex/ru');
$response = DadataClean::cleanDate('24/3/12');
$response = DadataClean::cleanVehicle('форд фокус');
$response = DadataClean::getStatistics();
$response = DadataClean::getStatistics(now()->subDays(6));
print_r($response);
```

### Проверка баланса системи

[](#проверка-баланса-системи)

```
$response = DadataClean::getBalance();
```

### Получение статистики использования всех сервисов

[](#получение-статистики-использования-всех-сервисов)

На текущий день:

```
$response = DadataClean::getStatistics();
```

На любую другую дату:

```
$response = DadataClean::getStatistics(now()->subDays(6));
// or
$response = DadataClean::getStatistics('2019-11-01');
```

Ссылки, документация, API:
--------------------------

[](#ссылки-документация-api)

-
-
-
-
-

###  Health Score

22

—

LowBetter than 25% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1439d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5dcedadb933dc04a7b70c3543b1789afaba817c66308c4c0139c244c1ad3f913?d=identicon)[HamasakiBrain](/maintainers/HamasakiBrain)

---

Top Contributors

[![HamasakiBrain](https://avatars.githubusercontent.com/u/43117784?v=4)](https://github.com/HamasakiBrain "HamasakiBrain (2 commits)")

---

Tags

laravelautocompleteDaData

### Embed Badge

![Health badge](/badges/hamasakibrain-laravel-dadata/health.svg)

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k120.0M586](/packages/barryvdh-laravel-ide-helper)[fomvasss/laravel-dadata

Dadata API client (https://dadata.ru)

41118.9k](/packages/fomvasss-laravel-dadata)[movemoveapp/laravel-dadata

Laravel SDK for working with the DaData.RU service API

45204.3k](/packages/movemoveapp-laravel-dadata)[yieldstudio/nova-google-autocomplete

A Laravel Nova Google autocomplete field.

12210.7k](/packages/yieldstudio-nova-google-autocomplete)[riodwanto/filament-ace-editor

An ACE editor field for Filament forms with syntax highlighting, themes, and autocompletion.

2063.2k4](/packages/riodwanto-filament-ace-editor)

PHPackages © 2026

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