title: PHP Connect to Sharepoint using Thybag\SharePointAPI
body: <p>I have the following code</p>
  
  <pre><code>//$sp = new SharePointAPI('&amp;&amp;', '&amp;&amp;', 'https://&amp;&amp;.net/personal/zzz/_vti_bin/Lists.asmx?WSDL',);
  
  //$sp = new SharePointAPI('&amp;&amp;', '&amp;&amp;', 'https://&amp;&amp;net/personal/zzz/_vti_bin/Lists.asmx?SDL', 'NTLM');
  
  $sp = new SharePointAPI('&amp;&amp;', '&amp;&amp;', 'https://&amp;&amp;net/personal/zzz/_vti_bin/Lists.asmx?WSDL', 'SPONLINE');
  
  $listContents = $sp-&gt;read('GetListCollection'); 
  
  return $listContents;
  </code></pre>
  
  <p>Depending on which of the "new SharepointAPI" lines I execute, I get a different error.</p>
  
  <p>Using "NTLM", I get the error: -</p>
  
  <pre><code>Uncaught exception 'Exception' with message 'Error'  
  in /home/shinksyc/public_html/sharepointUpload/src/Thybag/Auth/SoapClientAuth.php:129
  Stack trace:
  #0 [internal function]: Thybag\Auth\SoapClientAuth-&gt;__doRequest('&lt;?xml 
  version="...', 'https://my.sp.m...', 'http://schemas....', 1, 0)
  </code></pre>
  
  <p>Using "SPONLINE", I get the error </p>
  
  <pre><code>'Error (Client) looks like we got no XML document'.
  </code></pre>
  
  <p>I am also slightly confused as to how to find out what the name of the lists may be that I get read.</p>
  
  <p>Any help is much appreciated.</p>
  
  <p>Thanks</p>
  
  <p>Martin</p>