PHPackages                             moriony/dadata-bundle - 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-bundle

ActiveLibrary[API Development](/categories/api)

moriony/dadata-bundle
=====================

0140PHP

Since Oct 16Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Dadata Bundle for Symfony 2
===========================

[](#dadata-bundle-for-symfony-2)

Symfony 2 bundle for Dadata.ru [API client](https://github.com/moriony/dadata-client).

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

[](#configuration)

First of all, add yours datada.ru credentials to `/app/config/parameters.yml`

```
parameters:
    dadata.token: *** token ***
    dadata.secret: *** secret ***
```

Add bundle configuration to `/app/config/config.yml`

```
dadata:
    clients:
        default:
            token: %dadata.token%
            secret: %dadata.secret%
        second_client: # You can add multiply clients if you need
            token: %dadata.token%
            secret: %dadata.secret%
```

Register bundle in `/app/AppKernel.php`

```
  $bundles = array(
    # ...
    new Moriony\DadataBundle\DadataBundle(),
    # ...
  );
```

Now dadata bundle is ready to use.

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

[](#how-to-use)

```
class DefaultController extends Controller
{
    public function indexAction()
    {
        # ...
        $manager = $this->container->get('dadata.client_manager');
        $client = $manager->getClient('default');
        $response = $client->cleanAddress("мск сухонска 11/-89");
        # ...
    }
}
```

Installing
----------

[](#installing)

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

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

Todo
----

[](#todo)

- automated testing

Links
-----

[](#links)

- [Dadata API Client](https://github.com/moriony/dadata-client)
- [Dadata.ru API documantation](https://dadata.ru/api/)

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

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 (13 commits)")

### Embed Badge

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

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

###  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)[facebook/php-business-sdk

PHP SDK for Facebook Business

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

PHP wrapper for the Meilisearch API

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

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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