Skip to content

Releases: movemoveapp/dadata2

v2.0.3

13 Jul 16:12
Compare
Choose a tag to compare

New Features

Support for Phone Number and Postal Code Standardization: We've introduced new methods for standardizing phone numbers and postal codes, enhancing data accuracy and usability.

SDK Core Update

The SDK core has been updated to better integrate with DaData's responses. All dictionaries returned from DaData are now converted to Enums, simplifying the code and eliminating the need for string checks.

Enum Implementation:

The first method to utilize Enums is the phone standardization method. In the Phone\Phone object, the type field (see https://dadata.ru/api/clean/phone/ under "Тип телефона") now uses the PhoneType Enum.

Code Example:

use MoveMoveApp\DaData2\Facades\DaDataPhone;

...

$data = DaDataPhone::clean((string) $query);
$phones = [];

foreach ($data as $suggestions) {
    $phones[] = [
        $this->phoneValue($suggestions),
        $suggestions->country_code,
        $suggestions->city_code,
        $suggestions->number,
        $suggestions->type ? $suggestions->type->name : null,
        $suggestions->type ? $suggestions->type->value : null,
    ];
}

In the $suggestions->type->name, you receive the name, and $suggestions->type->value provides the name in Russian as returned by DaData.

This update aims to streamline your development process and enhance your application's functionality with robust, reliable data handling.

v2.0.1

25 Jun 17:30
Compare
Choose a tag to compare

DaData2 is here!

We are thrilled to introduce DaData2, the advanced successor to our original DaData package. This new version brings enhanced capabilities and several new features designed to streamline your data management processes.

Key Enhancements:

  • Full Typing Support: DaData2 now includes comprehensive support for typing objects, enhancing the robustness and reliability of data operations.
  • Expanded Methods for Campaigns and Addresses: With new methods tailored for more effective management of campaigns and precise handling of address data, users can enjoy improved functionality for marketing and geographical data tasks.

New Features Include:

  • Advanced Address Management: Gain detailed control over address data, which boosts accuracy for location-based services and logistical operations.
  • Enhanced Campaign Tools: Improved tools for campaign management facilitate better segmentation, targeting, and analytics, enabling more effective marketing strategies.

Compatibility:

  • Laravel Support: DaData2 is compatible exclusively with Laravel versions 10 and 11.
  • PHP Compatibility: Supports PHP version 8 only, ensuring optimal performance and security with the latest PHP features.

DaData2 continues our commitment to providing powerful, user-friendly solutions for sophisticated data management challenges. Whether you are handling complex data integration projects or routine daily data tasks, DaData2 delivers improved performance and expanded functionality to meet a wide range of needs.