/ntlm-soap-client

PHP WDSL/Soap Client with NTLM Authentication for Microsoft Dynamics NAT Server.

Primary LanguagePHPMIT LicenseMIT

ntlm-soap-client

Latest Version on Packagist Software License Total Downloads

PHP WDSL/Soap Client with NTLM Authentication for Microsoft Dynamics NAT Server.

Install

Via Composer

$ composer require matejsvajger/ntlm-soap-client

Usage

$url = 'URL_TO_WEBSERVICE_WSDL';
$config = new matejsvajger\NTLMSoap\Common\NTLMConfig([
    'domain'   => 'domain',
    'username' => 'username',
    'password' => 'password'
]);

$client = new matejsvajger\NTLMSoap\Client($url, $config);

$response = $client->ReadMultiple(['filter'=>[], 'setSize'=>1]);

foreach ($response->ReadMultiple_Result->CRMContactlist as $entity) {
    print_r($entity);
}

NOTE: NTLM Authentication string looks like <domain>/<username>:<password>. All three config items are required.

Change log

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

If you discover any security related issues, please email hello@matejsvajger.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.