wimski / soap-ntlm
SOAP client with NTLM authentication support
1.0.0
2022-10-19 08:41 UTC
Requires
- php: ^8.1
- ext-curl: *
- ext-soap: *
- wimski/curl: ^1.0
Requires (Dev)
- php-mock/php-mock-phpunit: ^2.6
- phpstan/phpstan: ^1.8
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-10-19 13:00:57 UTC
README
Soap with NTLM
SOAP client with NTLM authentication support.
Changelog
Install
composer require wimski/soap-ntlm
Usage
use Wimski\Curl\CurlResourceFactory; use Wimski\SoapNtlm\ClientFactory; use Wimski\SoapNtlm\NtlmService; use Wimski\SoapNtlm\NtlmServiceConfig; use Wimski\SoapNtlm\Stream\NtlmStreamWrapperFactory; $curlResourceFactory = new CurlResourceFactory(); $config = new NtlmServiceConfig( 'wsdl-uri', 'ntlm-auth-username', 'ntlm-auth-password', ['default' => 'option'], ); $service = new NtlmService( $config, new ClientFactory($curlResourceFactory), new NtlmStreamWrapperFactory($curlResourceFactory), ); $response = $service->request( 'soap-endpoint', 'action-function', ['some' => 'parameter'], ['extra' => 'option'], );