edmondscommerce/ntlm-soap-client
最新稳定版本:v2.1.0
Composer 安装命令:
composer require edmondscommerce/ntlm-soap-client
包简介
A simple SOAP client that supports NTLM authentication for WSDL to PHP
README 文档
README
This is a very simple SOAP client that supports NTLM authentication for use with WSDL To PHP
It has two classes, the Client that allows the username and password to be set, and tells CURL to use NTLM, and the Base which extends the Abstract client from WsdlToPhp and sets the options.
Usage
When generating the client you need to use the setSoapClientClass option and pass in the Base class. A simplified example is shown below
<?php declare(strict_types=1); use EdmondsCommerce\NtlmSoapClient\NTLMSoapBase; use WsdlToPhp\PackageGenerator\ConfigurationReader\GeneratorOptions; use WsdlToPhp\PackageGenerator\Generator\Generator; $options = GeneratorOptions::instance(); $options ->setSoapClientClass(NTLMSoapBase::class) /* Other options as required */ ; // Generator instantiation $generator = new Generator($options); // Package generation $generator->generatePackage();
When using the generated classes, pass in the WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_LOGIN and
WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_PASSWORD options with the username and password.
Inspiration
The code for the Client came from the following ticket in the main project. I've just wrapped it in a library as I needed to use it in several different projects
统计信息
- 总下载量: 344
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-04-28