承接 marcoboom/voertuigdata 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

marcoboom/voertuigdata

最新稳定版本:1.0

Composer 安装命令:

composer require marcoboom/voertuigdata

包简介

PHP Wrapper for the Voertuidata.nl SOAP webservice

README 文档

README

PHP Wrapper for the Voertuigdata.nl SOAP webservice

Installation and Requirements

First, you'll need to require the package with Composer:

$ composer require marcoboom/voertuigdata

This package requires PHP 5.4 with SOAP installed

Usage

First, create an Instance of the Voertuigdata class

$vd = new Voertuigdata\Voertuigdata('username', 'password');

Replace username and password with the given account.

Optional you can pass as third argument, an options array:

$options = [
	'environment' 	=> 	'production',
	'cache_wsdl' 	=> 	WSDL_CACHE_NONE
];

If the environment option is not passed through. The class wil search for an ENVIRONMENT constant. If this is not equal to production, the testing environment of Voertuigdata will be used.

Calls

Within the instance you can call a method from the webservice, defined at http://www.voertuigdata.nl/soap/voertuigservice.asmx. The parameters of the method should be send through by an array.

Each method returns the raw object given by the webservice.

If the call failes it throws a VoertuigdataException.

try {
	$result = $vd->getPersonenautoInformatieMiddelsKenteken(['Kenteken'=>'56RPFV']);

	var_dump($result);

} catch (Voertuigdata\VoertuigdataException $e) {

	var_dump($e->getMessage());

}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-30