Wallogit.com
2017 © Pedro Peláez
Library for communicating with Microsoft services using NTLM authentication.
The PHP NTLM library (php-ntlm) is intended to provide various methods to aid in communicating with Microsoft services that utilize NTLM authentication from within PHP., (*1)
The preferred installation method is via Composer, which will automatically handle autoloading of classes., (*3)
{
"require": {
"jamesiarmes/php-ntlm": "~1.0"
}
}
The \jamesiarmes\PhpNtlm\SoapClient class extends PHP's built in SoapClient
class and can be used in the same manner with a few minor changes., (*4)
$options array.$options array
that can be used to set or override the default curl options.Basic example:, (*5)
$client = new SoapClient(
$wsdl,
array('user' => 'username', 'password' => '12345')
);
Example that skips SSL certificate validation:, (*6)
$client = new SoapClient(
$wsdl,
array(
'user' => 'username',
'password' => '12345',
'curlopts' => array(CURLOPT_SSL_VERIFYPEER => false),
)
);
The basic options available on the constructor can be found at http://php.net/manual/en/soapclient.soapclient.php. The trace option is not necessary, as the last request and response methods will always be available. In addition to these options, the following additional options are available:, (*7)
The following is a list of known projects that use this library. If you would like to add your project to the list, please open a pull request to update this document., (*8)