- What is gruzoveek/dadata-bundle used for in Laravel?
- It integrates Laravel applications with the DaData.ru API for address suggestions, company lookup, and data cleaning. It provides typed services for FIAS/KLADR address data, INN/OGRN/name company searches, and phone, email, and name cleanup. In Laravel it adds configuration and service container bindings so you can inject the client instead of writing raw HTTP calls.
- How do I install gruzoveek/dadata-bundle with Composer?
- Install it with Composer using composer require gruzoveek/dadata-bundle. Then configure the package services in your Laravel app and resolve the DaData client through the provided container bindings. Check the GitHub README for any publishable config or required environment variables.
- Which Laravel versions are supported by gruzoveek/dadata-bundle?
- The provided overview does not state specific Laravel or PHP version constraints. Before installing, check the package's composer.json on GitHub or Packagist for the exact illuminate/support and PHP requirements. That is the safest way to confirm compatibility with your Laravel version.
- Can I use gruzoveek/dadata-bundle outside of Laravel?
- Yes. The package is described as a PHP DaData.ru integration with framework-agnostic service wiring, so the services can be wired into other DI containers. The Laravel-specific parts are the configuration and service container bindings, which you can replace in a non-Laravel app.
- How do I configure the DaData API key, timeout, and HTTP client?
- The bundle exposes configuration for the API key, timeout, and HTTP client. In Laravel, set those values through the package configuration and let the container build the client with your credentials. Avoid hard-coding the key in application code; use environment variables where possible.
- Does it support address suggestions with FIAS, KLADR, and postal data?
- Yes. The overview lists address suggestions with FIAS/KLADR codes and postal data as a core feature. You can use the typed address service to power autocomplete and address validation in a Russian-market application. Map the returned codes and postal fields into your own models as needed.
- Can I look up companies by INN, OGRN, or name with this package?
- Yes. The package includes company lookup by INN, OGRN, or name. That lets you retrieve company details for onboarding, invoicing, or verification flows. Use the company service rather than calling DaData endpoints manually.
- Does gruzoveek/dadata-bundle clean phone numbers, emails, and names?
- Yes. Data cleaning for phones, emails, and names is one of the advertised features. The services wrap the DaData cleaning endpoints and return structured results for your application. You can use this to normalize user input before storing it.
- How should I handle DaData API errors and timeouts in production?
- The package is designed to handle requests, responses, and error cases, and it supports a configurable timeout. In production, catch client exceptions, log useful context, and fail gracefully in autocomplete flows. Also consider application-level caching and rate limiting to reduce API calls and stay within your DaData quota.
- Is gruzoveek/dadata-bundle maintained, and what are the alternatives?
- The overview does not provide release history or maintenance details, so check the GitHub repository for recent commits and tagged releases before adopting it. Alternatives include calling the DaData.ru REST API directly or using another DaData SDK. Choose based on maintenance activity, Laravel version support, and whether you need typed services and container bindings.