Skip to content

svennis94/PHP-NTLM-Soap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP NTLM Soap Client

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();
    }
}