Download the PHP package coolycow/laravel-dadata without Composer
On this page you can find all versions of the php package coolycow/laravel-dadata. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download coolycow/laravel-dadata
More information about coolycow/laravel-dadata
Files in coolycow/laravel-dadata
Package laravel-dadata
Short Description Dadata API client (https://dadata.ru)
License MIT
Informations about the package laravel-dadata
Laravel DaData
Пакет работы с сервисом DaData.ru.
Dadata - сервис автоматической проверки и исправления контактных данных: ФИО, адреса, телефоны, email, паспорта и реквизиты компаний.
Установка
Запустить:
Для Laravel < 5.5: Зарегистрировать service-provider в config/app.php:
Для Lumen добавить в bootstrap/app.php:
Опубликовать конфиг:
Задать токен (и ключ для API стандартизации) в config/dadata.php
или .env
Использование
Сервис подсказок (https://dadata.ru/api/suggest/)
API подсказок помогает человеку быстро ввести корректные данные. Подсказывает ФИО, email, почтовые адреса, реквизиты компаний и банков, и другие справочники.
Добавить в необходимый клас фасад:
Пример использование метода с параметрами:
Первым параметром может быть: fio, address, party, email, bank
Пример использование поиска по ИНН или ОГРН с параметрами:
Первым параметром может быть ИНН, ОГРН или Dadata HID
Сервис стандартизации (https://dadata.ru/api/clean/)
API стандартизации приводит в порядок и обогащает дополнительной информацией почтовые адреса, телефоны, паспорта, ФИО и email.
Добавить в клас фасад:
Использовать методы:
Проверка баланса системы
Получение статистики использования сервиса
На текущий день
На любую другую дату
Ссылки, документация, API:
All versions of laravel-dadata with dependencies
ext-json Version *
ext-curl Version *
guzzlehttp/guzzle Version >=6.2.0