定制 waarneembemiddeling/bigregister-soap 二次开发

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

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

waarneembemiddeling/bigregister-soap

最新稳定版本:3.1.0

Composer 安装命令:

composer require waarneembemiddeling/bigregister-soap

包简介

php 8.0+ implementation of the Dutch BIG Register SOAP interface

README 文档

README

Build Status Scrutinizer Code Quality

This is a lightweight implementation of the BIG register Soap interface.. A mapping of all the Soap types is provided.

Installation

Start by installing composer. Then, install this library:

$ php composer.phar require "waarneembemiddeling/bigregister-soap"

Requirements

PHP 8.0 and ext-soap

Usage

Most users will be satisfied by using the Service class provided. The service class parses the response into php arrays and transforms all ids into readable values.

Perform a search with the service

<?php
// Will return only one or none result
$service = new Wb\BigRegister\SoapClient\Service();
print_r($service->findByRegistrationNumber('19023424101'));

Search by name and city

<?php
// Will return only one or none result
$service = new Wb\BigRegister\SoapClient\Service();
print_r($service->findByLastnameAndCity('Janssen', 'Amsterdam'));

Usage of the Client

For power users who just want to use the raw unaltered response we offer the possibility to use the Client. Creating a new instance is as simple as:

<?php

$client = new \Wb\BigRegister\SoapClient\Client();

Perform a search with the client

Search on a number:

<?php

$client = new \Wb\BigRegister\SoapClient\Client();
$request = new \Wb\BigRegister\SoapClient\Model\ListHcpApproxRequest();
$request->RegistrationNumber = '123';
$response = $client->ListHcpApprox4($request);

// dump the response
print_r($response);

Overriding the constructor of the native SoapClient

We're using the native php SoapClient. If you want to change the WSDL (f.e. if you want to use the demo environment) or want to override the options in order to debug the client you can do so:

<?php

$wsdl = 'http://host.tld/myWsdl';
$options = array(
    'trace' => true
);
$client = new \Wb\BigRegister\SoapClient\Client($wsdl, $options);

For more information about the native client check php.net.

统计信息

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

GitHub 信息

  • Stars: 12
  • Watchers: 5
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-05-19