rocketfellows/soap-client-factory
最新稳定版本:v1.0.0
Composer 安装命令:
composer require rocketfellows/soap-client-factory
包简介
README 文档
README
PHP SOAP client factory - is a wrapper around PHP SoapClient initialization.
Initialization of the client when the create function is called, and not at the time of instantiation of the dependency.
More about PHP SoapClient here: https://www.php.net/manual/en/class.soapclient.php.
Installation.
composer require rocketfellows/soap-client-factory
Package details.
Component composition:
SoapClientFactory- factory for creating PHPSoapClientwith given parameters.
SoapClientFactory functions:
public function create(string $wsdl, ?array $options = []): SoapClient- factory-function takes as parameters the string$wsdl(URI of the WSDL file or NULL if working in non-WSDL mode) and an optional array of parameters$options. More details about the parameters at https://www.php.net/manual/en/class.soapclient.php.
Throwable exceptions:
SoapFault- https://www.php.net/manual/ru/class.soapfault.php.
Usage example.
Create instance of SoapClientFactory and call create function with arguments for PHP SoapClient:
$client = (new SoapClientFactory())->create('test.wsdl');
Contributing.
Welcome to pull requests. If there is a major changes, first please open an issue for discussion.
Please make sure to update tests as appropriate.
统计信息
- 总下载量: 195
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-12-09