PHPackages                             skeeks/yii2-dadata-suggest-api - 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. [Framework](/categories/framework)
4. /
5. skeeks/yii2-dadata-suggest-api

ActiveYii2-extension[Framework](/categories/framework)

skeeks/yii2-dadata-suggest-api
==============================

Suggest yii2 api dadata.ru

1.0.0(9y ago)22.7k↓33.3%3BSD-3-ClausePHP

Since Sep 22Pushed 8y ago1 watchersCompare

[ Source](https://github.com/skeeks-semenov/yii2-dadata-suggest-api)[ Packagist](https://packagist.org/packages/skeeks/yii2-dadata-suggest-api)[ Docs](http://www.skeeks.com/)[ RSS](/packages/skeeks-yii2-dadata-suggest-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (2)Versions (7)Used By (3)

API подсказок Dadata.ru
=======================

[](#api-подсказок-dadataru)

Info
----

[](#info)

-

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

add to composer.json

```
"repositories": [
    {
        "type": "git",
        "url":  "https://github.com/skeeks-semenov/yii2-dadata-suggest-api.git"
    }
],

```

Either run

```
php composer.phar require --prefer-dist skeeks/yii2-dadata-suggest-api "*"

```

or add

```
"skeeks/yii2-dadata-suggest-api": "*"

```

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

[](#how-to-use)

```
//App config
[
    'components'    =>
    [
    //....
        'dadataSuggestApi' =>
        [
            'class'                 => 'skeeks\yii2\dadataSuggestApi\DadataSuggestApi',
            'authorization_token'   => 'token',
            'timeout'               => 12,
        ],
    //....
    ]
]
```

Examples
--------

[](#examples)

### Адресные подсказки

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

```
$response = \Yii::$app->dadataSuggestApi->send('/rs/suggest/address', [
    'query' => 'Хабар',
    'count' => 10
]);

print_r($response->httpClientRequest->url);     //Full api url
print_r($response->httpClientRequest->data);    //Request data
print_r($response->httpClientRequest->method);  //Request method
print_r($response->httpClientRequest->headers); //Request headers

print_r($response->httpClientResponse->statusCode); //Server response code
print_r($response->httpClientResponse->content);    //Original api response

if ($response->isError)
{
    print_r($response->errorMessage); //Расшифровка кода
    print_r($response->errorData);
    print_r($response->errorCode);
} else
{
    print_r($response->data); //Array response data
}
```

### Определение положения пользователя по ip

[](#определение-положения-пользователя-по-ip)

```
$response = \Yii::$app->dadataSuggestApi->detectAddressByIp(\Yii::$app->request->userIP);
```

### Подсказки email

[](#подсказки-email)

```
$response = \Yii::$app->dadataSuggestApi->getEmail([
    'query' => 'info@',
    'count' => 10
]);
```

### Подсказки фио

[](#подсказки-фио)

```
$response = \Yii::$app->dadataSuggestApi->getFio([
    'query' => 'Семен',
    'count' => 10
]);
```

---

> [![skeeks!](https://camo.githubusercontent.com/cae82dcf01ec5dead3fe52f7d6dc919d52b7b060cdaccddb39a7a4c3383a282f/68747470733a2f2f67726176617461722e636f6d2f75736572696d6167652f37343433313133322f31336430346438333231383539333536343432323737306236313665353632322e6a7067)](http://skeeks.com)
> *SkeekS CMS (Yii2) — fast, simple, effective!*
> [skeeks.com](http://skeeks.com) | [cms.skeeks.com](http://cms.skeeks.com) | [marketplace.cms.skeeks.com](http://marketplace.cms.skeeks.com)

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity67

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 ~10 days

Total

6

Last Release

3476d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/785306737dd13e3ea6826dfc04ab29ececa88f560d054ff595d64853cb878219?d=identicon)[skeeks-semenov](/maintainers/skeeks-semenov)

---

Top Contributors

[![skeeks-semenov](https://avatars.githubusercontent.com/u/9209305?v=4)](https://github.com/skeeks-semenov "skeeks-semenov (20 commits)")

---

Tags

apiframeworkappskeeksyii

### Embed Badge

![Health badge](/badges/skeeks-yii2-dadata-suggest-api/health.svg)

```
[![Health](https://phpackages.com/badges/skeeks-yii2-dadata-suggest-api/health.svg)](https://phpackages.com/packages/skeeks-yii2-dadata-suggest-api)
```

###  Alternatives

[skeeks/yii2-assets-auto-compress

Automatically compile and merge files js + css + html in yii2 project

162437.6k6](/packages/skeeks-yii2-assets-auto-compress)[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13825.6k47](/packages/skeeks-cms)

PHPackages © 2026

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