sebudesign/php-ntlm-soap

Composer based package of https://blogs.msdn.microsoft.com/freddyk/2010/01/19/connecting-to-nav-web-services-from-php/

1.0.0 2017-07-23 12:56 UTC

This package is not auto-updated.

Last update: 2024-11-13 05:26:27 UTC


README

A composer package based on this article https://blogs.msdn.microsoft.com/freddyk/2010/01/19/connecting-to-nav-web-services-from-php/

Usage

<?php namespace App\Services;

use SeBuDesign\NtlmSoap\Client;

class PetsService
{
    public function getPetTypes()
    {
        $client = new Client(
            'http://my.pets.com/WS_Pet_types', // Endpoint of the call
            'PetService\Username', // NTLM username
            'pa55w0rd' // NTLM password
        );
        
        $response = $client->ReadMultiple(['filter' => null]); // Call the ReadMultiple Soap call with filter parameter
        
        var_dump($response); // All pet types
        die();
    }
}