PHPackages                             glendemon/dadata-suggestions - 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. glendemon/dadata-suggestions

ActiveLibrary[API Development](/categories/api)

glendemon/dadata-suggestions
============================

Integration with Dadata suggestions API.

v1.0.2(6y ago)327.8k3MITPHPPHP &gt;=5.6.0

Since May 18Pushed 6y ago1 watchersCompare

[ Source](https://github.com/glendemon/dadata-suggestions)[ Packagist](https://packagist.org/packages/glendemon/dadata-suggestions)[ RSS](/packages/glendemon-dadata-suggestions/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

DadataSuggestions
=================

[](#dadatasuggestions)

Integration with Dadata suggestions API.

[![Latest Stable Version](https://camo.githubusercontent.com/287d397681935cde3a9e5b1e931174cca7717dfeb5a2270ece1b1fc5c22f515b/68747470733a2f2f706f7365722e707567782e6f72672f676c656e64656d6f6e2f6461646174612d73756767657374696f6e732f762f737461626c65)](https://packagist.org/packages/glendemon/dadata-suggestions)[![Total Downloads](https://camo.githubusercontent.com/501a82f7120d167aa76657edb3b418b7e16ee9be1e1c8b7c9a0b47573926fa69/68747470733a2f2f706f7365722e707567782e6f72672f676c656e64656d6f6e2f6461646174612d73756767657374696f6e732f646f776e6c6f616473)](https://packagist.org/packages/glendemon/dadata-suggestions)[![Latest Unstable Version](https://camo.githubusercontent.com/57b6b5226e8dfd3f00d34a644bbffe472eb7512aaa054c28b45c816ff091d1c7/68747470733a2f2f706f7365722e707567782e6f72672f676c656e64656d6f6e2f6461646174612d73756767657374696f6e732f762f756e737461626c65)](https://packagist.org/packages/glendemon/dadata-suggestions)[![License](https://camo.githubusercontent.com/0828908d05af9c36051f88aa504fcad4401a07a3a287081d5f6ac8c6568dfa84/68747470733a2f2f706f7365722e707567782e6f72672f676c656e64656d6f6e2f6461646174612d73756767657374696f6e732f6c6963656e7365)](https://packagist.org/packages/glendemon/dadata-suggestions)

Installation
------------

[](#installation)

This extension is available at packagist.org and can be installed via composer by following command:

`composer require glendemon/dadata-suggestions`

Configuration
-------------

[](#configuration)

You can customize debug panel behavior with this options:

- `token` - private api token \[required\].
- `url` - path to suggestions api \[optional\].
- `client` - GuzzleHttp\\Client \[optional\].

Example:

```
$service = new \DadataSuggestions\DadataSuggestionsService();
$service->setUrl('https://suggestions.dadata.ru/suggestions/api/4_1/rs/suggest/');
$service->setToken('...');
```

```
    public function testSuggestAddressFlat()
    {
        $service = $this->getService();
        $response = $service->suggestAddress('мск балтийская 6к1 5');
        foreach ($response->getSuggestions() as $suggestion) {
            $this->assertEquals('г Москва, ул Балтийская, д 6 к 1, кв 5', $suggestion->getValue());
            $this->assertEquals('г Москва, ул Балтийская, д 6 к 1, кв 5', $suggestion->getUnrestrictedValue());
            $data = $suggestion->getData();
            $this->assertInstanceOf(\DadataSuggestions\Data\Address::class, $data);
            $this->assertEquals('Россия', $data->country);
            $this->assertEquals('Москва', $data->city);
            $this->assertEquals('ул Балтийская', $data->street_with_type);
            $this->assertEquals('6', $data->house);
            $this->assertEquals('1', $data->block);
            $this->assertEquals('5', $data->flat);
        }
    }

    /**
     * @return \DadataSuggestions\DadataSuggestionsService
     */
    protected function getService()
    {
        $service = new \DadataSuggestions\DadataSuggestionsService();
        $service->setToken('...');
        return $service;
    }
```

Links
-----

[](#links)

[API documentation](https://dadata.ru/api/suggest/)

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

Every ~734 days

Total

3

Last Release

2229d ago

### Community

Maintainers

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

---

Top Contributors

[![sg4tech](https://avatars.githubusercontent.com/u/3677021?v=4)](https://github.com/sg4tech "sg4tech (26 commits)")

---

Tags

dadatadadata-suggestionsphpapiDaDatasuggestions

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/glendemon-dadata-suggestions/health.svg)

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[hflabs/dadata

Data cleansing, enrichment and suggestions via Dadata API

1091.4M9](/packages/hflabs-dadata)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

563.6M13](/packages/checkout-checkout-sdk-php)

PHPackages © 2026

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