inteleon/soap-client
最新稳定版本:v1.0.3
Composer 安装命令:
composer require inteleon/soap-client
包简介
Inteleon Soap Client
README 文档
README
Extends the native PHP Soap Client with some more options. The class uses cURL to make the requests.
Installation
Run: composer require inteleon/soap-client
How to use
The usage is the same as the native SoapClient class.
Options
Timeouts (milliseconds)
$client->setTimeout(30000); //The maximum number of milliseconds to execute. $client->setConnectTimeout(30000); //The number of milliseconds to wait while trying to connect.
Connect attempts
$client->setConnectAttempts(2); //Number of connect attempts if connection fails
Verify SSL certificate
$client->setVerifyCertificate(true); //Verify the SSL certificate. WARNING: Turning off CURLOPT_SSL_VERIFYPEER allows man in the middle (MITM) attacks, which you don't want!
HTTP user agent
$client->setUserAgent('Foo');
Custom cURL option
$client->setCurlOption(CURLOPT_XXX, ''); //See http://php.net/manual/en/function.curl-setopt.php
Todo
- Ability to set timeouts/options on the WSDL fetching. As the native SoapClient seems to do this in the constructor it is hard to overwrite it.
- More and better tests
统计信息
- 总下载量: 25.44k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-02-03