dmt-software/insolvency-client
Composer 安装命令:
composer require dmt-software/insolvency-client
包简介
Client for insolvency SOAP service
README 文档
README
This is a client for the Dutch insolvency web service from rechtspraak.nl.
Installation
composer require dmt-software/insolvency-client
Usage
Before using this server please visit rechtspraak.nl and read the technical documentation (Dutch)
use DMT\Insolvency\Client; use DMT\Insolvency\Config; use DMT\Insolvency\Exception\Exception; use DMT\Insolvency\Exception\RequestException; use DMT\CommandBus\Validator\ValidationException; use Psr\Http\Client\ClientInterface; use Psr\Http\Message\RequestFactoryInterface; $client = new Client( new Config( user: '{{ username }}', password: '{{ password }}' ]), /** @var ClientInterface $httpClient */ $httpClient, /** @var RequestFactoryInterface $requestFactory */ $requestFactory, ); try { $publicatieLijst = $client->searchUndertaking( '{{ company name }}', '{{ kvk-number }}' // chamber of commerce number ); foreach ($publicatieLijst->publicaties as $publicatie) { if (!in_array($publicatie->publicatieKenmerk, (array)$cachedPublications)) { $insolvente = $publicatie->insolvente; // lazy loads insolvency } } } catch (RequestException $exception) { // user input errors $message = $exception->getMessage(); if ($exception->getPrevious() instanceof ValidationException) { $message = (string) $exception->getPrevious()->getViolations(); } echo $message; } catch (Exception $exception) { // server error }
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-05-24