1. Go to this page and download the library: Download wimski/soap-ntlm library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
wimski / soap-ntlm example snippets
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'],
);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.