Download the PHP package movemoveapp/laravel-dadata2 without Composer
On this page you can find all versions of the php package movemoveapp/laravel-dadata2. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download movemoveapp/laravel-dadata2
More information about movemoveapp/laravel-dadata2
Files in movemoveapp/laravel-dadata2
Package laravel-dadata2
Short Description A Laravel SDK for interacting with the DaData API, providing seamless integration for address validation, data enrichment, and other data processing features.
License MIT
Informations about the package laravel-dadata2
DaData Laravel SDK Package
DaData is an SDK designed to facilitate easy interaction with the DaData API, allowing seamless integration of DaData functionalities within your Laravel applications. This package supports address and company data management for Russia, Belarus, and Kazakhstan. movemoveapp/laravel-dadata2
is the second version of the original movemoveapp/laravel-dadata package, built with a new and improved approach.
This version addresses a wide range of bugs and issues discovered in the first release, offering a more stable and maintainable integration with the DaData API.
Note
The original movemoveapp/laravel-dadata package is no longer maintained and should not be used in new projects.
- Features
- Installation
- Register the Service Provider
- Publish the Configuration
- Configuration
- API
- Organization
- Organization Suggestion
- Find Russian Organization
- Cleaner Methods
- Address Standardization
- Name Standardization
- Phone Standardization
- Passport Standardization
- Email Standardization
- Vehicle Standardization
- Suggestion Methods
- Name Suggestion
- Passport Unit Suggestion
- Email Suggestion
- Car Brand Suggestion
- Bank Suggestion
- Bank Lookup by ID
Features
- Easy integration with the DaData API.
- Support for handling addresses and company data across Russia, Belarus, and Kazakhstan.
- Compatible with Laravel 10 and 11, PHP version 8.
Installation
Install the package via Composer:
Register the Service Provider
After installing the package, you need to register the DaData service provider.
Up to and including Laravel 10, add the following line to the providers array in your config/app.php
file:
From Laravel versions 11 and above, you may edit bootstrap/providers.php
file:
Publish the Configuration
After installation, publish the configuration file to set up the package with Laravel:
Configuration
Once the configuration file is published, you can set up your DaData credentials in your .env
file. Obtain your API key and secret key from the DaData dashboard and set them as follows:
These keys will allow your application to authenticate requests to the DaData API.
API
Organization
This facade provides powerful tools to search, validate, and autocomplete Russian legal entities and individual entrepreneurs (IEs) based on data from the official Russian registries (EGRUL and EGRIP).
It helps to:
- Autocomplete company names, INNs, or addresses while typing;
- Narrow results by region, status, type, or industry (OKVED);
- Speed up user input and reduce errors in forms or business logic;
- Get full company details (registration data, address, management, etc.).
- Perfect for autofill scenarios, client onboarding forms, or integration with enterprise directories.
Organization Suggestion
Use this facade to search and autocomplete legal entities and individual entrepreneurs by name, INN, OGRN, address, or director name.
Basic Usage
Supported Parameters
Parameter | Type | Description |
---|---|---|
query |
string | Search string (required). Could be a name, INN, OGRN, address, etc. |
count |
integer | Max number of results to return (default: 10, max: 20). |
type |
string | Organization type: LEGAL (legal entity) or INDIVIDUAL (entrepreneur). |
status |
array | Filter by status: ACTIVE , LIQUIDATING , LIQUIDATED , BANKRUPT , etc. |
okved |
string | Filter by OKVED code (business activity code). |
locations |
array | Filter results by location (e.g. region, city). |
locations_boost |
array | Prioritize results in certain locations. |
Example with Advanced Filters
``
Docs
Find Russian Organization
Use this method to retrieve exact information about a Russian company or individual entrepreneur by INN, OGRN, or full name. Unlike the general suggestions, this method performs a precise match and returns full organization data — perfect for backend checks, form validation, or compliance workflows.
Supported Parameters
Parameter | Type | Description |
---|---|---|
query |
string |
Required. INN, OGRN, or full name of the legal entity or sole trader. |
count |
integer |
Number of results to return (default: 1, max: 20). |
kpp |
string |
KPP code — helps narrow down the branch when searching by INN. |
branch_type |
string |
Branch type: MAIN (head office), BRANCH (subsidiary/branch). |
type |
string |
Organization type: LEGAL (legal entity), INDIVIDUAL (sole proprietor). |
status |
array |
Filter by organization status: ACTIVE , LIQUIDATED , LIQUIDATING , etc. |
Docs
Cleaner Methods
The following data types can be standardized (cleaned):
Address Standardization
Features:
- Parses full address into structured fields (region, city, street, house, flat)
- Provides postal code using Russian Post data
- Identifies coordinates (geocoding)
- Detects district, metro station, apartment price and area
- Returns KLADR, FIAS (GAR), OKATO, OKTMO, and tax office codes
- Identifies cadastral number (Russia only)
Docs
Name Standardization
Features:
- Fixes typos and transliteration
- Detects gender
- Provides grammatical inflection
Docs
Phone Standardization
Features:
- Validates phone number
- Corrects city code (DEF-code)
- Determines mobile operator (with MNP support)
- Detects country, region, city, timezone
Docs
Passport Standardization
⚠️ Note: Due to issues with the МВД database, data is current as of June 21, 2023.
Features:
- Validates format
- Checks against invalid passports registry
Docs
Email Standardization
Features:
- Validates email format
- Fixes common typos
- Detects disposable emails
- Classifies as personal, corporate, or role-based
Docs
Vehicle Standardization
Features:
- Recognizes car make and model
Docs
Suggestion Methods
Use this facade to implement autocomplete features in forms or UIs. All methods require a query key in the input array.
Name Suggestion
Features:
- Helps users quickly enter full names in forms
- Suggests surname, first name, and patronymic combinations
- Detects gender
Docs
Passport Unit Suggestion
Features:
- Suggests issuing authorities for Russian passports
- Supports autocomplete for FMS unit codes
Docs
Email Suggestion
Features:
- Autocompletes email addresses based on popular domains
- Useful for form inputs with typo correction
Docs
Car Brand Suggestion
Features:
- Suggests car makes and models
- Useful for auto-selection interfaces
Docs
Bank Suggestion
Features:
- Suggests banks by name, BIK, SWIFT, INN, or correspondent account
- Returns complete bank info (address, status, license)
Docs
Bank Lookup by ID
Features:
- Searches bank by exact BIK, SWIFT, INN, or correspondent account
- Use when you already have the identifier, not for autocomplete
Docs
All versions of laravel-dadata2 with dependencies
ext-json Version *
guzzlehttp/guzzle Version ^7.5.1
guzzlehttp/psr7 Version ^2.5