定制 moriony/dadata-client 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

moriony/dadata-client

Composer 安装命令:

composer require moriony/dadata-client

包简介

README 文档

README

Dadata.ru API client based on Guzzle 5.

How to use

Add this code into your project. Use yours token and secret provided by dadata.ru

$factory = new \Moriony\Dadata\Factory();
$client = $factory->createClient([
    'token' => '***auth token here***',
    'secret' => '***secret key here***'
]);

Now client is ready to use.

Data clean

See full code here.

$response = $client->cleanAddress("мск сухонска 11/-89");
$response = $client->cleanPhone("тел 7165219 доб139");
$response = $client->cleanPassport("4509 235857");
$response = $client->cleanName("Срегей владимерович иванов");
$response = $client->cleanEmail("serega@yandex/ru");
$response = $client->cleanDate("24/3/12");
$response = $client->cleanVehicle("форд фокус");

Multiply data clean

$response = $client->cleanAddresses([
    "мск сухонска 11/-89",
    "воронеж лизюкова 16",
]);

Installing

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

{
    "require": {
        "moriony/dadata-client": "dev-master"
    }
}

Todo

  • clean structure
  • geo location
  • suggests
  • other api methods
  • automated testing

Links

统计信息

  • 总下载量: 483
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固