定制 adresslabor/check-service 二次开发

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

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

adresslabor/check-service

最新稳定版本:1.0.2

Composer 安装命令:

composer require adresslabor/check-service

包简介

A helper library to optimise data where it is generated! Real-time checks on the website.

README 文档

README

The Adresslabor CheckService is a helper library to optimise data where it is generated! Real-time checks on the website.

For more information visit adresslabor.de

Installation

composer require adresslabor/check-service

Usage

// initialize the checkClient
$apiCid = "0000";
$apiKey = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx";
$associative = true;

// The client will test your credentials first
$checkClient = new \Adresslabor\CheckService\CheckClient($apiCid, $apiKey, $associative);

// get your available credits
$availableCredits = $checkClient->credits;

// https://adresslabor.de/de/produkte/adress-check-dach.html
$scResult = $checkClient->addressCheckDACH("Kolping Str.", "14", "63768", "Hösbach", "DE");
$scxResult = $checkClient->addressCheckDACH("Kolping Str.", "14", "63768", "Hösbach", "DE", true);

// https://adresslabor.de/de/produkte/adress-check-world.html
$scIntResult = $checkClient->addressCheckWorld("Kolping Str.","63768", "Hösbach", "DE","","","", "", "", "", "14");

// https://adresslabor.de/de/produkte/fake-check.html
$fkResult = $checkClient->fakeCheck("Donald", "Duck", "Kolping Str.", "14", "63768", "Hösbach", "DE");

// https://adresslabor.de/de/produkte/name-check-b2c.html
$ncResult = $checkClient->nameCheckB2C("Rolf", "Paschold", "Frau", "Dr.");

// https://adresslabor.de/de/produkte/e-mail-check.html
$emResult = $checkClient->emailCheck("prof@adresslabor.de");
$emxResult = $checkClient->emailCheck("prof@adresslabor.de", true);

// https://adresslabor.de/de/produkte/telefonverzeichnis.html
$pbResult = $checkClient->telephoneDirectory("Donald", "Duck", "Kolping Str.", "63768", "Hösbach", "DE", "+4912345789", "Dr.", "14");
$pbtResult = $checkClient->telephoneDirectory("Donald", "Duck", "Kolping Str.", "63768", "Hösbach", "DE", "+4912345789", "Dr.", "14", true);

// https://adresslabor.de/de/produkte/ust-idnr-check.html
$vatidResult = $checkClient->vatNumberCheck("DE304496992");
$vatidxResult = $checkClient->vatNumberCheck("DE304496992", true);

// execute multiple checks in one single request
$multiCheckResult = $checkClient->check(\Adresslabor\CheckService\CheckClient::PATH_V3, [
    'product' => 'fk,nc,scx',
    'firstname' => 'Rolf',
    'lastname' => 'Paschold',
    'street' => 'Kolping Str.',
    'hno' => '14',
    'zip' => '63768',
    'city' => 'Hösbach'
]);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-05-23