mpluskassa/mplusqapi
最新稳定版本:v1.64.3
Composer 安装命令:
composer require mpluskassa/mplusqapi
包简介
PHP Client for the MplusKASSA SOAP API
README 文档
README
This is the official PHP client for the MplusKASSA SOAP API.
composer require mpluskassa/mplusqapi
Usage
use MplusKASSA\MplusQapi\MplusApiClient; $client = new MplusApiClient('api.mpluskassa.nl', $port, $ident, $secret); $response = $client->getApiVersion(); echo "{$response->serviceMajorNumber}.{$response->serviceMinorNumber}.{$response->serviceRevisionNumber}";
Debugging
To retrieve the raw SOAP XML contents of the last request and/or response that were sent, use getLastRequest and getLastReponse.
// ... $response = $client->getApiVersion(); $lastRequest = $client->getLastRequest(); echo $lastRequest; $lastResponse = $client->getLastResponse(); echo $lastResponse;
Features and Goals
- No runtime WSDL parsing needed.
- Strict typing.
- Increased productivity.
Notes on how the WSDL is mapped to PHP
- xsd:Date and xsd:DateTime are mapped to \DateTime
- xsd:Decimal is mapped to Brick\BigDecimal
- SoapMplusData and SoapMplusDataTime are converted to \DateTime
- Many longs that contain an unscaled value and their companion decimalplaces are converted to Brick\BigDecimal
- When a list is wrapped in an object containing only that list one level of indirection is removed
Dependencies
- guzzlehttp/guzzle
- brick/math
统计信息
- 总下载量: 7.06k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-11-04